aboutsummaryrefslogtreecommitdiff
path: root/debug/a_tumble.lua.X
diff options
context:
space:
mode:
Diffstat (limited to 'debug/a_tumble.lua.X')
-rw-r--r--debug/a_tumble.lua.X61
1 files changed, 61 insertions, 0 deletions
diff --git a/debug/a_tumble.lua.X b/debug/a_tumble.lua.X
new file mode 100644
index 0000000..301fc76
--- /dev/null
+++ b/debug/a_tumble.lua.X
@@ -0,0 +1,61 @@
+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) ]
+134 10:[ local _parent_0 = Ability ] >> 8:[ class Tumble 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 ]
+776 25:[ print("Doing tumble") ] >> 32:[ print("Doing tumble") ]
+800 26:[ local chars_at_loc = world.room.data.locations[5] ] >> 33:[ chars_at_loc = world.room.data.locations[5] ]
+846 27:[ print("chars at loc:", chars_at_loc) ] >> 34:[ print("chars at loc:",chars_at_loc) ]
+886 28:[ if world.server then ] >> 35:[ if world.server ]
+903 29:[ local a_chars_at_loc = { } ] >> 36:[ a_chars_at_loc = {} ]
+936 30:[ for _, v in ipairs(chars_at_loc) do ] >> 37:[ for _,v in ipairs(chars_at_loc) ]
+962 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)) ]
+926 32:[ end ] >> 37:[ for _,v in ipairs(chars_at_loc) ]
+1028 33:[ chars_at_loc = a_chars_at_loc ] >> 39:[ chars_at_loc = a_chars_at_loc ]
+884 34:[ end ] >> 35:[ if world.server ]
+1060 35:[ local hp_minus ] >> 40:[ hp_minus = () -> ]
+1060 36:[ hp_minus = function() ] >> 40:[ hp_minus = () -> ]
+1094 37:[ for _, char in pairs(chars_at_loc) do ] >> 41:[ for _, char in pairs(chars_at_loc) ]
+1119 38:[ char:set_field("hp", char.data.hp - 3) ] >> 42:[ char\set_field("hp",char.data.hp - 3) ]
+1080 39:[ end ] >> 41:[ for _, char in pairs(chars_at_loc) ]
+1060 40:[ end ] >> 40:[ hp_minus = () -> ]
+1161 41:[ if world.server then ] >> 43:[ if world.server ]
+1178 42:[ hp_minus() ] >> 44:[ hp_minus! ]
+1159 43:[ end ] >> 43:[ if world.server ]
+1192 44:[ if world.client then ] >> 45:[ if world.client ]
+1209 45:[ ui = ui or require("ui") ] >> 46:[ ui = ui or require "ui" ]
+1236 46:[ return ui.tween_hit(char, 1, hp_minus) ] >> 47:[ ui.tween_hit(char,1, hp_minus) ]
+1190 47:[ end ] >> 45:[ if world.client ]
+314 54:[ _class_0.__parent.__init(self, "Tumble", { }) ] >> 16:[ super("Tumble",{}) ]
+335 55:[ self.requirements = { ] >> 17:[ @requirements = { ]
+357 57:[ "status", ] >> 18:[ {"status", "active"}, ]
+366 58:[ "active" ] >> 18:[ {"status", "active"}, ]
+335 60:[ } ] >> 17:[ @requirements = { ]
+144 85:[ self.text = "Tumble" ] >> 9:[ @text = "Tumble" ]
+162 86:[ self.description = "Tumble around for those nearby" ] >> 10:[ @description = "Tumble around for those nearby" ]
+211 87:[ self.hits_icon = { ] >> 11:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+225 88:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+227 89:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+229 90:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+231 91:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+233 92:[ 1, ] >> 11:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+235 93:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+237 94:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+239 95:[ 0 ] >> 11:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+211 96:[ } ] >> 11:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
+243 97:[ self.sprite = "data/tumble.png" ] >> 12:[ @sprite = "data/tumble.png" ]
+272 98:[ self.speed = 5 ] >> 13:[ @speed = 5 ]
+284 99:[ self.distance = 1 ] >> 14:[ @distance = 1 ]
+1268 105:[ mod.Tumble = Tumble ] >> 49:[ mod.Tumble = Tumble ]
+1289 106:[ return mod ] >> 51:[ mod ]