aboutsummaryrefslogtreecommitdiff
path: root/debug/a_firebreath.lua.X
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-01-29 16:20:10 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-01-29 16:20:10 -0600
commitc2926c5ec74d7e37da395c8c32a7ff2b4cae7d06 (patch)
treeac2bb208dab1274cdc5e9059ffe014ae19181a4c /debug/a_firebreath.lua.X
downloadfools_rush_in-c2926c5ec74d7e37da395c8c32a7ff2b4cae7d06.tar.gz
fools_rush_in-c2926c5ec74d7e37da395c8c32a7ff2b4cae7d06.tar.bz2
fools_rush_in-c2926c5ec74d7e37da395c8c32a7ff2b4cae7d06.zip
All the files
Diffstat (limited to 'debug/a_firebreath.lua.X')
-rw-r--r--debug/a_firebreath.lua.X62
1 files changed, 62 insertions, 0 deletions
diff --git a/debug/a_firebreath.lua.X b/debug/a_firebreath.lua.X
new file mode 100644
index 0000000..057c386
--- /dev/null
+++ b/debug/a_firebreath.lua.X
@@ -0,0 +1,62 @@
+Pos Lua >> Moon
+1 1:[ local reg = require("ability_reg") ] >> 1:[ reg = require "ability_reg" ]
+48 3:[ Ability = reg.Ability ] >> 2:[ import Ability from reg ]
+54 4:[ local mod = ... ] >> 4:[ mod = ... ]
+64 5:[ print("In tubmle, reg is", reg) ] >> 5:[ print("In tubmle, reg is",reg) ]
+120 9:[ local _parent_0 = Ability ] >> 7:[ class FireBreath extends Ability ]
+424 12:[ local room = world.player_party.room ] >> 20:[ room = world.player_party.room ]
+457 13:[ local my_pos = char.location ] >> 21:[ my_pos = char.location ]
+514 14:[ local char_tbl1, char_tbl2 = nil, nil ] >> 23:[ char_tbl1, char_tbl2 = nil, nil ]
+562 15:[ for distance = 1, 8 do ] >> 24:[ for distance = 1, 8 ]
+571 16:[ char_tbl1 = room:at_location(my_pos + distance) ] >> 25:[ char_tbl1 = room\at_location(my_pos + distance) ]
+622 17:[ char_tbl2 = room:at_location(my_pos - distance) ] >> 26:[ char_tbl2 = room\at_location(my_pos - distance) ]
+675 18:[ if (char_tbl1 and #char_tbl1 > 0) or (char_tbl2 and #char_tbl2 > 0) then ] >> 27:[ if (char_tbl1 and #char_tbl1 > 0) or (char_tbl2 and #char_tbl2 > 0) ]
+673 20:[ end ] >> 27:[ if (char_tbl1 and #char_tbl1 > 0) or (char_tbl2 and #char_tbl2 > 0) ]
+548 21:[ end ] >> 24:[ for distance = 1, 8 ]
+783 24:[ print("Doing FireBreath") ] >> 31:[ print("Doing FireBreath") ]
+818 25:[ for i = 5, 8 do ] >> 32:[ for i = 5,8 ]
+826 26:[ local chars_at_loc = world.room.data.locations[i] ] >> 33:[ chars_at_loc = world.room.data.locations[i] ]
+873 27:[ print("chars at loc:", chars_at_loc) ] >> 34:[ print("chars at loc:",chars_at_loc) ]
+914 28:[ if world.server then ] >> 35:[ if world.server ]
+932 29:[ local a_chars_at_loc = { } ] >> 36:[ a_chars_at_loc = {} ]
+966 30:[ for _, v in ipairs(chars_at_loc) do ] >> 37:[ for _,v in ipairs(chars_at_loc) ]
+993 31:[ table.insert(a_chars_at_loc, world.enemy_party:member(v.uname)) ] >> 38:[ table.insert(a_chars_at_loc,world.enemy_party\member(v.uname)) ]
+956 32:[ end ] >> 37:[ for _,v in ipairs(chars_at_loc) ]
+1060 33:[ chars_at_loc = a_chars_at_loc ] >> 39:[ chars_at_loc = a_chars_at_loc ]
+912 34:[ end ] >> 35:[ if world.server ]
+1093 35:[ local hp_minus ] >> 40:[ hp_minus = () -> ]
+1093 36:[ hp_minus = function() ] >> 40:[ hp_minus = () -> ]
+1128 37:[ for _, char in pairs(chars_at_loc) do ] >> 41:[ for _, char in pairs(chars_at_loc) ]
+1154 38:[ char:set_field("hp", char.data.hp - 1) ] >> 42:[ char\set_field("hp",char.data.hp - 1) ]
+1114 39:[ end ] >> 41:[ for _, char in pairs(chars_at_loc) ]
+1093 40:[ end ] >> 40:[ hp_minus = () -> ]
+1197 41:[ if world.server then ] >> 43:[ if world.server ]
+1215 42:[ hp_minus() ] >> 44:[ hp_minus! ]
+1195 43:[ end ] >> 43:[ if world.server ]
+1230 44:[ if world.client then ] >> 45:[ if world.client ]
+1248 45:[ local ui = ui or require("ui") ] >> 46:[ ui = ui or require "ui" ]
+1276 46:[ ui.tween_hit(char, i - 4, hp_minus) ] >> 47:[ ui.tween_hit(char,i - 4, hp_minus) ]
+1228 47:[ end ] >> 45:[ if world.client ]
+811 48:[ end ] >> 32:[ for i = 5,8 ]
+317 55:[ _class_0.__parent.__init(self, "FireBreath", { }) ] >> 15:[ super("FireBreath",{}) ]
+342 56:[ self.requirements = { ] >> 16:[ @requirements = { ]
+364 58:[ "status", ] >> 17:[ {"status", "active"}, ]
+373 59:[ "active" ] >> 17:[ {"status", "active"}, ]
+342 61:[ } ] >> 16:[ @requirements = { ]
+130 86:[ self.text = "Breath Fire" ] >> 8:[ @text = "Breath Fire" ]
+153 87:[ self.description = "Breath fire, visible for everyone!" ] >> 9:[ @description = "Breath fire, visible for everyone!" ]
+206 88:[ self.sprite = "data/dragon-breath.png" ] >> 10:[ @sprite = "data/dragon-breath.png" ]
+242 89:[ self.hits_icon = { ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
+256 90:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
+258 91:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
+260 92:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
+262 93:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
+264 94:[ 1, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
+266 95:[ 1, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
+268 96:[ 1, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
+270 97:[ 1 ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
+242 98:[ } ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
+274 99:[ self.speed = 10 ] >> 12:[ @speed = 10 ]
+287 100:[ self.distance = 1 ] >> 13:[ @distance = 1 ]
+1312 106:[ mod.Tumble = Tumble ] >> 49:[ mod.Tumble = Tumble ]
+1333 107:[ return mod ] >> 51:[ mod ]