aboutsummaryrefslogtreecommitdiff
path: root/debug/a_hackysacks.lua.X
blob: 88adebb37b81fe4a59315ec2c2c7cdb81c7fede6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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) ]
116	 9:[ local _parent_0 = Ability ] >> 7:[ class Juggle extends Ability ]
393	 12:[ local room = world.player_party.room ] >> 20:[ room = world.player_party.room ]
426	 13:[ local my_pos = char.location ] >> 21:[ my_pos = char.location ]
483	 14:[ local char_tbl1, char_tbl2 = nil, nil ] >> 23:[ char_tbl1, char_tbl2 = nil, nil ]
531	 15:[ for distance = 1, 8 do ] >> 24:[ for distance = 1, 8 ]
540	 16:[ char_tbl1 = room:at_location(my_pos + distance) ] >> 25:[ char_tbl1 = room\at_location(my_pos + distance) ]
591	 17:[ char_tbl2 = room:at_location(my_pos - distance) ] >> 26:[ char_tbl2 = room\at_location(my_pos - distance) ]
644	 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) ]
642	 20:[ end ] >> 27:[ if (char_tbl1 and #char_tbl1 > 0) or (char_tbl2 and #char_tbl2 > 0) ]
517	 21:[ end ] >> 24:[ for distance = 1, 8 ]
759	 24:[ for i = 5, 6 do ] >> 31:[ for i = 5,6 ]
767	 25:[ local chars_at_loc = world.room.data.locations[i] ] >> 32:[ chars_at_loc = world.room.data.locations[i] ]
814	 26:[ print("chars at loc:", chars_at_loc) ] >> 33:[ print("chars at loc:",chars_at_loc) ]
855	 27:[ if world.server then ] >> 34:[ if world.server ]
873	 28:[ local a_chars_at_loc = { } ] >> 35:[ a_chars_at_loc = {} ]
907	 29:[ for _, v in ipairs(chars_at_loc) do ] >> 36:[ for _,v in ipairs(chars_at_loc) ]
934	 30:[ table.insert(a_chars_at_loc, world.enemy_party:member(v.uname)) ] >> 37:[ table.insert(a_chars_at_loc,world.enemy_party\member(v.uname)) ]
897	 31:[ end ] >> 36:[ for _,v in ipairs(chars_at_loc) ]
1001	 32:[ chars_at_loc = a_chars_at_loc ] >> 38:[ chars_at_loc = a_chars_at_loc ]
853	 33:[ end ] >> 34:[ if world.server ]
1034	 34:[ local hp_minus ] >> 39:[ hp_minus = () -> ]
1034	 35:[ hp_minus = function() ] >> 39:[ hp_minus = () -> ]
1069	 36:[ for _, char in pairs(chars_at_loc) do ] >> 40:[ for _, char in pairs(chars_at_loc) ]
1095	 37:[ char:set_field("hp", char.data.hp - 1) ] >> 41:[ char\set_field("hp",char.data.hp - 1) ]
1055	 38:[ end ] >> 40:[ for _, char in pairs(chars_at_loc) ]
1034	 39:[ end ] >> 39:[ hp_minus = () -> ]
1138	 40:[ if world.server then ] >> 42:[ if world.server ]
1156	 41:[ hp_minus() ] >> 43:[ hp_minus! ]
1136	 42:[ end ] >> 42:[ if world.server ]
1171	 43:[ if world.client then ] >> 44:[ if world.client ]
1189	 44:[ local ui = ui or require("ui") ] >> 45:[ ui = ui or require "ui" ]
1217	 45:[ ui.tween_hit(char, i - 4, hp_minus) ] >> 46:[ ui.tween_hit(char,i-4, hp_minus) ]
1169	 46:[ end ] >> 44:[ if world.client ]
752	 47:[ end ] >> 31:[ for i = 5,6 ]
290	 54:[ _class_0.__parent.__init(self, "Juggle", { }) ] >> 15:[ super("Juggle",{}) ]
311	 55:[ self.requirements = { ] >> 16:[ @requirements = { ]
333	 57:[ "status", ] >> 17:[ {"status", "active"}, ]
342	 58:[ "active" ] >> 17:[ {"status", "active"}, ]
311	 60:[ } ] >> 16:[ @requirements = { ]
126	 85:[ self.text = "Juggle Balls" ] >> 8:[ @text = "Juggle Balls" ]
150	 86:[ self.description = "Juggle some balls" ] >> 9:[ @description = "Juggle some balls" ]
186	 87:[ self.hits_icon = { ] >> 10:[ @hits_icon = {0,0,0,0,1,1,0,0} ]
200	 88:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,1,1,0,0} ]
202	 89:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,1,1,0,0} ]
204	 90:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,1,1,0,0} ]
206	 91:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,1,1,0,0} ]
208	 92:[ 1, ] >> 10:[ @hits_icon = {0,0,0,0,1,1,0,0} ]
210	 93:[ 1, ] >> 10:[ @hits_icon = {0,0,0,0,1,1,0,0} ]
212	 94:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,1,1,0,0} ]
214	 95:[ 0 ] >> 10:[ @hits_icon = {0,0,0,0,1,1,0,0} ]
186	 96:[ } ] >> 10:[ @hits_icon = {0,0,0,0,1,1,0,0} ]
218	 97:[ self.sprite = "data/juggler.png" ] >> 11:[ @sprite = "data/juggler.png" ]
248	 98:[ self.speed = 4 ] >> 12:[ @speed = 4 ]
260	 99:[ self.distance = 1 ] >> 13:[ @distance = 1 ]
1251	 105:[ mod.Tumble = Tumble ] >> 48:[ mod.Tumble = Tumble ]
1272	 106:[ return mod ] >> 50:[ mod ]