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
62
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 = ... ]
105 9:[ local _parent_0 = Ability ] >> 7:[ class HighJump extends Ability ]
394 12:[ local room = world.player_party.room ] >> 20:[ room = world.player_party.room ]
427 13:[ local my_pos = char.location ] >> 21:[ my_pos = char.location ]
484 14:[ local char_tbl1, char_tbl2 = nil, nil ] >> 23:[ char_tbl1, char_tbl2 = nil, nil ]
532 15:[ for distance = 1, 8 do ] >> 24:[ for distance = 1, 8 ]
541 16:[ char_tbl1 = room:at_location(my_pos + distance) ] >> 25:[ char_tbl1 = room\at_location(my_pos + distance) ]
592 17:[ char_tbl2 = room:at_location(my_pos - distance) ] >> 26:[ char_tbl2 = room\at_location(my_pos - distance) ]
645 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) ]
643 20:[ end ] >> 27:[ if (char_tbl1 and #char_tbl1 > 0) or (char_tbl2 and #char_tbl2 > 0) ]
518 21:[ end ] >> 24:[ for distance = 1, 8 ]
763 24:[ for _, i in pairs({ ] >> 31:[ for _,i in pairs({7,8}) ]
771 25:[ 7, ] >> 31:[ for _,i in pairs({7,8}) ]
773 26:[ 8 ] >> 31:[ for _,i in pairs({7,8}) ]
763 27:[ }) do ] >> 31:[ for _,i in pairs({7,8}) ]
780 28:[ local chars_at_loc = world.room.data.locations[i] ] >> 32:[ chars_at_loc = world.room.data.locations[i] ]
829 29:[ if world.server then ] >> 33:[ if world.server ]
847 30:[ local a_chars_at_loc = { } ] >> 34:[ a_chars_at_loc = {} ]
881 31:[ for _, v in ipairs(chars_at_loc) do ] >> 35:[ for _,v in ipairs(chars_at_loc) ]
908 32:[ table.insert(a_chars_at_loc, world.enemy_party:member(v.uname)) ] >> 36:[ table.insert(a_chars_at_loc,world.enemy_party\member(v.uname)) ]
871 33:[ end ] >> 35:[ for _,v in ipairs(chars_at_loc) ]
975 34:[ chars_at_loc = a_chars_at_loc ] >> 37:[ chars_at_loc = a_chars_at_loc ]
827 35:[ end ] >> 33:[ if world.server ]
1008 36:[ local hp_minus ] >> 38:[ hp_minus = () -> ]
1008 37:[ hp_minus = function() ] >> 38:[ hp_minus = () -> ]
1043 38:[ for _, char in pairs(chars_at_loc) do ] >> 39:[ for _, char in pairs(chars_at_loc) ]
1069 39:[ char:set_field("hp", char.data.hp - 1) ] >> 40:[ char\set_field("hp",char.data.hp - 1) ]
1029 40:[ end ] >> 39:[ for _, char in pairs(chars_at_loc) ]
1008 41:[ end ] >> 38:[ hp_minus = () -> ]
1112 42:[ if world.server then ] >> 41:[ if world.server ]
1130 43:[ hp_minus() ] >> 42:[ hp_minus! ]
1110 44:[ end ] >> 41:[ if world.server ]
1145 45:[ if world.client then ] >> 43:[ if world.client ]
1163 46:[ ui = ui or require("ui") ] >> 44:[ ui = ui or require "ui" ]
1191 47:[ ui.tween_hit(char, 1, hp_minus) ] >> 45:[ ui.tween_hit(char,1, hp_minus) ]
1143 48:[ end ] >> 43:[ if world.client ]
753 49:[ end ] >> 31:[ for _,i in pairs({7,8}) ]
291 56:[ _class_0.__parent.__init(self, "Tumble", { }) ] >> 15:[ super("Tumble",{}) ]
312 57:[ self.requirements = { ] >> 16:[ @requirements = { ]
334 59:[ "status", ] >> 17:[ {"status", "active"}, ]
343 60:[ "active" ] >> 17:[ {"status", "active"}, ]
312 62:[ } ] >> 16:[ @requirements = { ]
115 87:[ self.text = "High Jump" ] >> 8:[ @text = "High Jump" ]
136 88:[ self.description = "Jump up high. Like REALLY high." ] >> 9:[ @description = "Jump up high. Like REALLY high." ]
186 89:[ self.hits_icon = { ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
200 90:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
202 91:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
204 92:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
206 93:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
208 94:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
210 95:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
212 96:[ 1, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
214 97:[ 1 ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
186 98:[ } ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
218 99:[ self.sprite = "data/kangaroo.png" ] >> 11:[ @sprite = "data/kangaroo.png" ]
249 100:[ self.speed = 3 ] >> 12:[ @speed = 3 ]
261 101:[ self.distance = 1 ] >> 13:[ @distance = 1 ]
1223 107:[ mod.Tumble = Tumble ] >> 47:[ mod.Tumble = Tumble ]
1244 108:[ return mod ] >> 49:[ mod ]
|