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
|
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) ]
119 9:[ local _parent_0 = Ability ] >> 7:[ class KnifeSlip extends Ability ]
434 12:[ local room = world.player_party.room ] >> 20:[ room = world.player_party.room ]
467 13:[ local my_pos = char.location ] >> 21:[ my_pos = char.location ]
524 14:[ local char_tbl1, char_tbl2 = nil, nil ] >> 23:[ char_tbl1, char_tbl2 = nil, nil ]
572 15:[ for distance = 1, 8 do ] >> 24:[ for distance = 1, 8 ]
581 16:[ char_tbl1 = room:at_location(my_pos + distance) ] >> 25:[ char_tbl1 = room\at_location(my_pos + distance) ]
632 17:[ char_tbl2 = room:at_location(my_pos - distance) ] >> 26:[ char_tbl2 = room\at_location(my_pos - distance) ]
685 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) ]
683 20:[ end ] >> 27:[ if (char_tbl1 and #char_tbl1 > 0) or (char_tbl2 and #char_tbl2 > 0) ]
558 21:[ end ] >> 24:[ for distance = 1, 8 ]
793 24:[ print("Doing knifeslip") ] >> 31:[ print("Doing knifeslip") ]
827 25:[ for i = 7, 8 do ] >> 32:[ for i = 7,8 ]
835 26:[ local chars_at_loc = world.room.data.locations[i] ] >> 33:[ chars_at_loc = world.room.data.locations[i] ]
882 27:[ print("chars at loc:", chars_at_loc) ] >> 34:[ print("chars at loc:",chars_at_loc) ]
923 28:[ if world.server then ] >> 35:[ if world.server ]
941 29:[ local a_chars_at_loc = { } ] >> 36:[ a_chars_at_loc = {} ]
975 30:[ for _, v in ipairs(chars_at_loc) do ] >> 37:[ for _,v in ipairs(chars_at_loc) ]
1002 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)) ]
965 32:[ end ] >> 37:[ for _,v in ipairs(chars_at_loc) ]
1069 33:[ chars_at_loc = a_chars_at_loc ] >> 39:[ chars_at_loc = a_chars_at_loc ]
921 34:[ end ] >> 35:[ if world.server ]
1102 35:[ local hp_minus ] >> 40:[ hp_minus = () -> ]
1102 36:[ hp_minus = function() ] >> 40:[ hp_minus = () -> ]
1137 37:[ for _, char in pairs(chars_at_loc) do ] >> 41:[ for _, char in pairs(chars_at_loc) ]
1163 38:[ char:set_field("hp", char.data.hp - 2) ] >> 42:[ char\set_field("hp",char.data.hp - 2) ]
1123 39:[ end ] >> 41:[ for _, char in pairs(chars_at_loc) ]
1102 40:[ end ] >> 40:[ hp_minus = () -> ]
1206 41:[ if world.server then ] >> 43:[ if world.server ]
1224 42:[ hp_minus() ] >> 44:[ hp_minus! ]
1204 43:[ end ] >> 43:[ if world.server ]
1239 44:[ if world.client then ] >> 45:[ if world.client ]
1257 45:[ local ui = ui or require("ui") ] >> 46:[ ui = ui or require "ui" ]
1285 46:[ ui.tween_hit(char, i - 4, hp_minus) ] >> 47:[ ui.tween_hit(char,i-4, hp_minus) ]
1237 47:[ end ] >> 45:[ if world.client ]
820 48:[ end ] >> 32:[ for i = 7,8 ]
328 55:[ _class_0.__parent.__init(self, "KnifeSlip", { }) ] >> 15:[ super("KnifeSlip",{}) ]
352 56:[ self.requirements = { ] >> 16:[ @requirements = { ]
374 58:[ "status", ] >> 17:[ {"status", "active"}, ]
383 59:[ "active" ] >> 17:[ {"status", "active"}, ]
352 61:[ } ] >> 16:[ @requirements = { ]
129 86:[ self.text = "Juggle Knives" ] >> 8:[ @text = "Juggle Knives" ]
154 87:[ self.description = "Juggle some knives for\nthe people in the back" ] >> 9:[ @description = "Juggle some knives for\nthe people in the back" ]
219 88:[ self.hits_icon = { ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
233 89:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
235 90:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
237 91:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
239 92:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
241 93:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
243 94:[ 0, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
245 95:[ 1, ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
247 96:[ 1 ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
219 97:[ } ] >> 10:[ @hits_icon = {0,0,0,0,0,0,1,1} ]
251 98:[ self.sprite = "data/thrown-knife.png" ] >> 11:[ @sprite = "data/thrown-knife.png" ]
286 99:[ self.speed = 4 ] >> 12:[ @speed = 4 ]
298 100:[ self.distance = 1 ] >> 13:[ @distance = 1 ]
1319 106:[ mod.Tumble = Tumble ] >> 49:[ mod.Tumble = Tumble ]
1340 107:[ return mod ] >> 51:[ mod ]
|