diff options
Diffstat (limited to 'debug/a_test.lua.X')
| -rw-r--r-- | debug/a_test.lua.X | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/debug/a_test.lua.X b/debug/a_test.lua.X new file mode 100644 index 0000000..c6d5eb7 --- /dev/null +++ b/debug/a_test.lua.X @@ -0,0 +1,63 @@ +Pos Lua >> Moon +1 1:[ local reg = require("ability_reg") ] >> 1:[ reg = require "ability_reg" ] +29 2:[ local ui = require("ui") ] >> 2:[ ui = require "ui" ] +66 4:[ Ability = reg.Ability ] >> 3:[ import Ability from reg ] +72 5:[ local mod = ... ] >> 5:[ mod = ... ] +82 6:[ print("In tubmle, reg is", reg) ] >> 6:[ print("In tubmle, reg is",reg) ] +138 10:[ local _parent_0 = Ability ] >> 8:[ class Everything extends Ability ] +417 13:[ local room = world.player_party.room ] >> 21:[ room = world.player_party.room ] +450 14:[ local my_pos = char.location ] >> 22:[ my_pos = char.location ] +507 15:[ local char_tbl1, char_tbl2 = nil, nil ] >> 24:[ char_tbl1, char_tbl2 = nil, nil ] +555 16:[ for distance = 1, 8 do ] >> 25:[ for distance = 1, 8 ] +564 17:[ char_tbl1 = room:at_location(my_pos + distance) ] >> 26:[ char_tbl1 = room\at_location(my_pos + distance) ] +615 18:[ char_tbl2 = room:at_location(my_pos - distance) ] >> 27:[ char_tbl2 = room\at_location(my_pos - distance) ] +668 19:[ if (char_tbl1 and #char_tbl1 > 0) or (char_tbl2 and #char_tbl2 > 0) then ] >> 28:[ if (char_tbl1 and #char_tbl1 > 0) or (char_tbl2 and #char_tbl2 > 0) ] +666 21:[ end ] >> 28:[ if (char_tbl1 and #char_tbl1 > 0) or (char_tbl2 and #char_tbl2 > 0) ] +541 22:[ end ] >> 25:[ for distance = 1, 8 ] +783 25:[ for i = 5, 8 do ] >> 32:[ for i = 5,8 ] +791 26:[ print("Doing tumble") ] >> 33:[ print("Doing tumble") ] +816 27:[ local chars_at_loc = world.room.data.locations[i] ] >> 34:[ chars_at_loc = world.room.data.locations[i] ] +863 28:[ print("chars at loc:", chars_at_loc) ] >> 35:[ print("chars at loc:",chars_at_loc) ] +904 29:[ if world.server then ] >> 36:[ if world.server ] +922 30:[ local a_chars_at_loc = { } ] >> 37:[ a_chars_at_loc = {} ] +956 31:[ for _, v in ipairs(chars_at_loc) do ] >> 38:[ for _,v in ipairs(chars_at_loc) ] +983 32:[ table.insert(a_chars_at_loc, world.enemy_party:member(v.uname)) ] >> 39:[ table.insert(a_chars_at_loc,world.enemy_party\member(v.uname)) ] +946 33:[ end ] >> 38:[ for _,v in ipairs(chars_at_loc) ] +1050 34:[ chars_at_loc = a_chars_at_loc ] >> 40:[ chars_at_loc = a_chars_at_loc ] +902 35:[ end ] >> 36:[ if world.server ] +1083 36:[ local hp_minus ] >> 41:[ hp_minus = () -> ] +1083 37:[ hp_minus = function() ] >> 41:[ hp_minus = () -> ] +1118 38:[ for _, char in pairs(chars_at_loc) do ] >> 42:[ for _, char in pairs(chars_at_loc) ] +1144 39:[ char:set_field("hp", char.data.hp - 10) ] >> 43:[ char\set_field("hp",char.data.hp - 10) ] +1104 40:[ end ] >> 42:[ for _, char in pairs(chars_at_loc) ] +1083 41:[ end ] >> 41:[ hp_minus = () -> ] +1188 42:[ if world.server then ] >> 44:[ if world.server ] +1206 43:[ hp_minus() ] >> 45:[ hp_minus! ] +1186 44:[ end ] >> 44:[ if world.server ] +1221 45:[ if world.client then ] >> 46:[ if world.client ] +1239 46:[ ui = ui or require("ui") ] >> 47:[ ui = ui or require "ui" ] +1267 47:[ ui.tween_hit(char, i - 4, hp_minus) ] >> 48:[ ui.tween_hit(char,i-4, hp_minus) ] +1219 48:[ end ] >> 46:[ if world.client ] +776 49:[ end ] >> 32:[ for i = 5,8 ] +310 56:[ _class_0.__parent.__init(self, "Everything", { }) ] >> 16:[ super("Everything",{}) ] +335 57:[ self.requirements = { ] >> 17:[ @requirements = { ] +357 59:[ "status", ] >> 18:[ {"status", "active"}, ] +366 60:[ "active" ] >> 18:[ {"status", "active"}, ] +335 62:[ } ] >> 17:[ @requirements = { ] +148 87:[ self.text = "Everything" ] >> 9:[ @text = "Everything" ] +170 88:[ self.description = "destroy everything" ] >> 10:[ @description = "destroy everything" ] +207 89:[ self.hits_icon = { ] >> 11:[ @hits_icon = {1,1,1,1,1,1,1,1} ] +221 90:[ 1, ] >> 11:[ @hits_icon = {1,1,1,1,1,1,1,1} ] +223 91:[ 1, ] >> 11:[ @hits_icon = {1,1,1,1,1,1,1,1} ] +225 92:[ 1, ] >> 11:[ @hits_icon = {1,1,1,1,1,1,1,1} ] +227 93:[ 1, ] >> 11:[ @hits_icon = {1,1,1,1,1,1,1,1} ] +229 94:[ 1, ] >> 11:[ @hits_icon = {1,1,1,1,1,1,1,1} ] +231 95:[ 1, ] >> 11:[ @hits_icon = {1,1,1,1,1,1,1,1} ] +233 96:[ 1, ] >> 11:[ @hits_icon = {1,1,1,1,1,1,1,1} ] +235 97:[ 1 ] >> 11:[ @hits_icon = {1,1,1,1,1,1,1,1} ] +207 98:[ } ] >> 11:[ @hits_icon = {1,1,1,1,1,1,1,1} ] +239 99:[ self.sprite = "data/tumble.png" ] >> 12:[ @sprite = "data/tumble.png" ] +268 100:[ self.speed = 5 ] >> 13:[ @speed = 5 ] +280 101:[ self.distance = 1 ] >> 14:[ @distance = 1 ] +1301 107:[ mod.Test = Test ] >> 50:[ mod.Test = Test ] +1318 108:[ return mod ] >> 52:[ mod ] |
