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) ]
120 9:[ local _parent_0 = Ability ] >> 7:[ class FireBreath extends Ability ]
424 12:[ local room = world.player_party.room ] >> 20:[ room = world.player_party.room ]
457 13:[ local my_pos = char.location ] >> 21:[ my_pos = char.location ]
514 14:[ local char_tbl1, char_tbl2 = nil, nil ] >> 23:[ char_tbl1, char_tbl2 = nil, nil ]
562 15:[ for distance = 1, 8 do ] >> 24:[ for distance = 1, 8 ]
571 16:[ char_tbl1 = room:at_location(my_pos + distance) ] >> 25:[ char_tbl1 = room\at_location(my_pos + distance) ]
622 17:[ char_tbl2 = room:at_location(my_pos - distance) ] >> 26:[ char_tbl2 = room\at_location(my_pos - distance) ]
675 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) ]
673 20:[ end ] >> 27:[ if (char_tbl1 and #char_tbl1 > 0) or (char_tbl2 and #char_tbl2 > 0) ]
548 21:[ end ] >> 24:[ for distance = 1, 8 ]
783 24:[ print("Doing FireBreath") ] >> 31:[ print("Doing FireBreath") ]
818 25:[ for i = 5, 8 do ] >> 32:[ for i = 5,8 ]
826 26:[ local chars_at_loc = world.room.data.locations[i] ] >> 33:[ chars_at_loc = world.room.data.locations[i] ]
873 27:[ print("chars at loc:", chars_at_loc) ] >> 34:[ print("chars at loc:",chars_at_loc) ]
914 28:[ if world.server then ] >> 35:[ if world.server ]
932 29:[ local a_chars_at_loc = { } ] >> 36:[ a_chars_at_loc = {} ]
966 30:[ for _, v in ipairs(chars_at_loc) do ] >> 37:[ for _,v in ipairs(chars_at_loc) ]
993 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)) ]
956 32:[ end ] >> 37:[ for _,v in ipairs(chars_at_loc) ]
1060 33:[ chars_at_loc = a_chars_at_loc ] >> 39:[ chars_at_loc = a_chars_at_loc ]
912 34:[ end ] >> 35:[ if world.server ]
1093 35:[ local hp_minus ] >> 40:[ hp_minus = () -> ]
1093 36:[ hp_minus = function() ] >> 40:[ hp_minus = () -> ]
1128 37:[ for _, char in pairs(chars_at_loc) do ] >> 41:[ for _, char in pairs(chars_at_loc) ]
1154 38:[ char:set_field("hp", char.data.hp - 1) ] >> 42:[ char\set_field("hp",char.data.hp - 1) ]
1114 39:[ end ] >> 41:[ for _, char in pairs(chars_at_loc) ]
1093 40:[ end ] >> 40:[ hp_minus = () -> ]
1197 41:[ if world.server then ] >> 43:[ if world.server ]
1215 42:[ hp_minus() ] >> 44:[ hp_minus! ]
1195 43:[ end ] >> 43:[ if world.server ]
1230 44:[ if world.client then ] >> 45:[ if world.client ]
1248 45:[ local ui = ui or require("ui") ] >> 46:[ ui = ui or require "ui" ]
1276 46:[ ui.tween_hit(char, i - 4, hp_minus) ] >> 47:[ ui.tween_hit(char,i - 4, hp_minus) ]
1228 47:[ end ] >> 45:[ if world.client ]
811 48:[ end ] >> 32:[ for i = 5,8 ]
317 55:[ _class_0.__parent.__init(self, "FireBreath", { }) ] >> 15:[ super("FireBreath",{}) ]
342 56:[ self.requirements = { ] >> 16:[ @requirements = { ]
364 58:[ "status", ] >> 17:[ {"status", "active"}, ]
373 59:[ "active" ] >> 17:[ {"status", "active"}, ]
342 61:[ } ] >> 16:[ @requirements = { ]
130 86:[ self.text = "Breath Fire" ] >> 8:[ @text = "Breath Fire" ]
153 87:[ self.description = "Breath fire, visible for everyone!" ] >> 9:[ @description = "Breath fire, visible for everyone!" ]
206 88:[ self.sprite = "data/dragon-breath.png" ] >> 10:[ @sprite = "data/dragon-breath.png" ]
242 89:[ self.hits_icon = { ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
256 90:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
258 91:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
260 92:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
262 93:[ 0, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
264 94:[ 1, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
266 95:[ 1, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
268 96:[ 1, ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
270 97:[ 1 ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
242 98:[ } ] >> 11:[ @hits_icon = {0,0,0,0,1,1,1,1} ]
274 99:[ self.speed = 10 ] >> 12:[ @speed = 10 ]
287 100:[ self.distance = 1 ] >> 13:[ @distance = 1 ]
1312 106:[ mod.Tumble = Tumble ] >> 49:[ mod.Tumble = Tumble ]
1333 107:[ return mod ] >> 51:[ mod ]
|