aboutsummaryrefslogtreecommitdiff
path: root/debug/a_brood.lua.X
blob: ea6e658e631c00e45c918a332d50653e18953b29 (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
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 ]
73	 7:[ local _parent_0 = Ability ] >> 4:[ class Brood extends Ability ]
348	 10:[ local room = world.player_party.room ] >> 18:[ room = world.player_party.room ]
381	 11:[ local enemy_party = room.parties[1] ] >> 19:[ enemy_party = room.parties[1] ]
415	 12:[ if enemy_party == party then ] >> 20:[ if enemy_party == party ]
440	 13:[ enemy_party = room.parties[2] ] >> 21:[ enemy_party = room.parties[2] ]
413	 14:[ end ] >> 20:[ if enemy_party == party ]
508	 17:[ for i = 1, 4 do ] >> 23:[ for i = 1,4 ]
516	 18:[ local chars_at_loc = world.room.data.locations[i] ] >> 24:[ chars_at_loc = world.room.data.locations[i] ]
565	 19:[ if world.server then ] >> 25:[ if world.server ]
583	 20:[ local a_chars_at_loc = { } ] >> 26:[ a_chars_at_loc = {} ]
617	 21:[ for _, v in ipairs(chars_at_loc) do ] >> 27:[ for _,v in ipairs(chars_at_loc) ]
644	 22:[ table.insert(a_chars_at_loc, world.player_party:member(v.uname)) ] >> 28:[ table.insert(a_chars_at_loc,world.player_party\member(v.uname)) ]
607	 23:[ end ] >> 27:[ for _,v in ipairs(chars_at_loc) ]
712	 24:[ chars_at_loc = a_chars_at_loc ] >> 29:[ chars_at_loc = a_chars_at_loc ]
563	 25:[ end ] >> 25:[ if world.server ]
745	 26:[ local hp_minus ] >> 30:[ hp_minus = () -> ]
745	 27:[ hp_minus = function() ] >> 30:[ hp_minus = () -> ]
780	 28:[ for _, char in pairs(chars_at_loc) do ] >> 31:[ for _, char in pairs(chars_at_loc) ]
806	 29:[ char:set_field("hp", char.data.hp - 1) ] >> 32:[ char\set_field("hp",char.data.hp - 1) ]
766	 30:[ end ] >> 31:[ for _, char in pairs(chars_at_loc) ]
745	 31:[ end ] >> 30:[ hp_minus = () -> ]
849	 32:[ if world.server then ] >> 33:[ if world.server ]
867	 33:[ hp_minus() ] >> 34:[ hp_minus! ]
847	 34:[ end ] >> 33:[ if world.server ]
882	 35:[ if world.client then ] >> 35:[ if world.client ]
900	 36:[ local ui = ui or require("ui") ] >> 36:[ ui = ui or require "ui" ]
928	 37:[ ui.tween_hit(char, i, hp_minus) ] >> 37:[ ui.tween_hit(char,i, hp_minus) ]
880	 38:[ end ] >> 35:[ if world.client ]
501	 39:[ end ] >> 23:[ for i = 1,4 ]
973	 42:[ return print("TODO!") ] >> 39:[ print("TODO!") ]
1005	 45:[ return print("TODO!") ] >> 42:[ print("TODO!") ]
198	 52:[ _class_0.__parent.__init(self, ...) ] >> 11:[ super(...) ]
211	 53:[ self.requirements = { ] >> 12:[ @requirements = { ]
233	 55:[ "consume_stat", ] >> 13:[ {"consume_stat", "stamina", 1}, ]
248	 56:[ "stamina", ] >> 13:[ {"consume_stat", "stamina", 1}, ]
259	 57:[ 1 ] >> 13:[ {"consume_stat", "stamina", 1}, ]
268	 60:[ "status", ] >> 14:[ {"status", "active"}, ]
277	 61:[ "active" ] >> 14:[ {"status", "active"}, ]
293	 64:[ "distance", ] >> 15:[ {"distance", 1}, ]
304	 65:[ 1 ] >> 15:[ {"distance", 1}, ]
211	 67:[ } ] >> 12:[ @requirements = { ]
83	 92:[ self.text = "Brood" ] >> 5:[ @text = "Brood" ]
100	 93:[ self.description = "brood" ] >> 6:[ @description = "brood" ]
124	 94:[ self.hits_icon = { ] >> 7:[ @hits_icon = {1,1,1,1,0,0,0,0} ]
138	 95:[ 1, ] >> 7:[ @hits_icon = {1,1,1,1,0,0,0,0} ]
140	 96:[ 1, ] >> 7:[ @hits_icon = {1,1,1,1,0,0,0,0} ]
142	 97:[ 1, ] >> 7:[ @hits_icon = {1,1,1,1,0,0,0,0} ]
144	 98:[ 1, ] >> 7:[ @hits_icon = {1,1,1,1,0,0,0,0} ]
146	 99:[ 0, ] >> 7:[ @hits_icon = {1,1,1,1,0,0,0,0} ]
148	 100:[ 0, ] >> 7:[ @hits_icon = {1,1,1,1,0,0,0,0} ]
150	 101:[ 0, ] >> 7:[ @hits_icon = {1,1,1,1,0,0,0,0} ]
152	 102:[ 0 ] >> 7:[ @hits_icon = {1,1,1,1,0,0,0,0} ]
124	 103:[ } ] >> 7:[ @hits_icon = {1,1,1,1,0,0,0,0} ]
156	 104:[ self.speed = 5 ] >> 8:[ @speed = 5 ]
168	 105:[ self.distance = 1 ] >> 9:[ @distance = 1 ]