aboutsummaryrefslogtreecommitdiff
path: root/debug/a_drum.lua.X
diff options
context:
space:
mode:
Diffstat (limited to 'debug/a_drum.lua.X')
-rw-r--r--debug/a_drum.lua.X58
1 files changed, 58 insertions, 0 deletions
diff --git a/debug/a_drum.lua.X b/debug/a_drum.lua.X
new file mode 100644
index 0000000..9b55003
--- /dev/null
+++ b/debug/a_drum.lua.X
@@ -0,0 +1,58 @@
+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 = ... ]
+101 9:[ local _parent_0 = Ability ] >> 7:[ class Drum extends Ability ]
+362 12:[ local room = world.player_party.room ] >> 20:[ room = world.player_party.room ]
+395 13:[ local my_pos = char.location ] >> 21:[ my_pos = char.location ]
+452 14:[ local char_tbl1, char_tbl2 = nil, nil ] >> 23:[ char_tbl1, char_tbl2 = nil, nil ]
+500 15:[ for distance = 1, 8 do ] >> 24:[ for distance = 1, 8 ]
+509 16:[ char_tbl1 = room:at_location(my_pos + distance) ] >> 25:[ char_tbl1 = room\at_location(my_pos + distance) ]
+560 17:[ char_tbl2 = room:at_location(my_pos - distance) ] >> 26:[ char_tbl2 = room\at_location(my_pos - distance) ]
+613 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) ]
+611 20:[ end ] >> 27:[ if (char_tbl1 and #char_tbl1 > 0) or (char_tbl2 and #char_tbl2 > 0) ]
+486 21:[ end ] >> 24:[ for distance = 1, 8 ]
+721 24:[ local chars_at_loc = world.room.data.locations[5] ] >> 31:[ chars_at_loc = world.room.data.locations[5] ]
+769 25:[ if world.server then ] >> 32:[ if world.server ]
+786 26:[ local a_chars_at_loc = { } ] >> 33:[ a_chars_at_loc = {} ]
+819 27:[ for _, v in ipairs(chars_at_loc) do ] >> 34:[ for _,v in ipairs(chars_at_loc) ]
+845 28:[ table.insert(a_chars_at_loc, world.enemy_party:member(v.uname)) ] >> 35:[ table.insert(a_chars_at_loc,world.enemy_party\member(v.uname)) ]
+809 29:[ end ] >> 34:[ for _,v in ipairs(chars_at_loc) ]
+911 30:[ chars_at_loc = a_chars_at_loc ] >> 36:[ chars_at_loc = a_chars_at_loc ]
+767 31:[ end ] >> 32:[ if world.server ]
+943 32:[ local hp_minus ] >> 37:[ hp_minus = () -> ]
+943 33:[ hp_minus = function() ] >> 37:[ hp_minus = () -> ]
+977 34:[ for _, char in pairs(chars_at_loc) do ] >> 38:[ for _, char in pairs(chars_at_loc) ]
+1002 35:[ char:set_field("hp", char.data.hp - 1) ] >> 39:[ char\set_field("hp",char.data.hp - 1) ]
+963 36:[ end ] >> 38:[ for _, char in pairs(chars_at_loc) ]
+943 37:[ end ] >> 37:[ hp_minus = () -> ]
+1044 38:[ if world.server then ] >> 40:[ if world.server ]
+1061 39:[ hp_minus() ] >> 41:[ hp_minus! ]
+1042 40:[ end ] >> 40:[ if world.server ]
+1075 41:[ if world.client then ] >> 42:[ if world.client ]
+1092 42:[ ui = ui or require("ui") ] >> 43:[ ui = ui or require "ui" ]
+1119 43:[ return ui.tween_hit(char, 1, hp_minus) ] >> 44:[ ui.tween_hit(char,1, hp_minus) ]
+1073 44:[ end ] >> 42:[ if world.client ]
+261 51:[ _class_0.__parent.__init(self, "Drum", { }) ] >> 15:[ super("Drum",{}) ]
+280 52:[ self.requirements = { ] >> 16:[ @requirements = { ]
+302 54:[ "status", ] >> 17:[ {"status", "active"}, ]
+311 55:[ "active" ] >> 17:[ {"status", "active"}, ]
+280 57:[ } ] >> 16:[ @requirements = { ]
+111 82:[ self.text = "Drum" ] >> 8:[ @text = "Drum" ]
+127 83:[ self.description = "Rat-a-tat-tat!" ] >> 9:[ @description = "Rat-a-tat-tat!" ]
+160 84:[ self.hits_icon = { ] >> 10:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+174 85:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+176 86:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+178 87:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+180 88:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+182 89:[ 1, ] >> 10:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+184 90:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+186 91:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+188 92:[ 0 ] >> 10:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+160 93:[ } ] >> 10:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+192 94:[ self.sprite = "data/drum.png" ] >> 11:[ @sprite = "data/drum.png" ]
+219 95:[ self.speed = 5 ] >> 12:[ @speed = 5 ]
+231 96:[ self.distance = 1 ] >> 13:[ @distance = 1 ]
+1151 102:[ mod.Tumble = Tumble ] >> 46:[ mod.Tumble = Tumble ]
+1172 103:[ return mod ] >> 48:[ mod ]