aboutsummaryrefslogtreecommitdiff
path: root/debug/a_sulk.lua.X
blob: c75fcd4ac3e25593ddeb2ca25fad50ac2dcbd79c (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
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 ]
72	 7:[ local _parent_0 = Ability ] >> 4:[ class Sulk extends Ability ]
345	 10:[ local room = world.player_party.room ] >> 18:[ room = world.player_party.room ]
378	 11:[ local enemy_party = room.parties[1] ] >> 19:[ enemy_party = room.parties[1] ]
412	 12:[ if enemy_party == party then ] >> 20:[ if enemy_party == party ]
437	 13:[ enemy_party = room.parties[2] ] >> 21:[ enemy_party = room.parties[2] ]
410	 14:[ end ] >> 20:[ if enemy_party == party ]
505	 17:[ for i = 3, 4 do ] >> 23:[ for i = 3,4 ]
513	 18:[ local chars_at_loc = world.room.data.locations[i] ] >> 24:[ chars_at_loc = world.room.data.locations[i] ]
562	 19:[ if world.server then ] >> 25:[ if world.server ]
580	 20:[ local a_chars_at_loc = { } ] >> 26:[ a_chars_at_loc = {} ]
614	 21:[ for _, v in ipairs(chars_at_loc) do ] >> 27:[ for _,v in ipairs(chars_at_loc) ]
641	 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)) ]
604	 23:[ end ] >> 27:[ for _,v in ipairs(chars_at_loc) ]
709	 24:[ chars_at_loc = a_chars_at_loc ] >> 29:[ chars_at_loc = a_chars_at_loc ]
560	 25:[ end ] >> 25:[ if world.server ]
742	 26:[ local hp_minus ] >> 30:[ hp_minus = () -> ]
742	 27:[ hp_minus = function() ] >> 30:[ hp_minus = () -> ]
777	 28:[ for _, char in pairs(chars_at_loc) do ] >> 31:[ for _, char in pairs(chars_at_loc) ]
803	 29:[ char:set_field("hp", char.data.hp - 1) ] >> 32:[ char\set_field("hp",char.data.hp - 1) ]
763	 30:[ end ] >> 31:[ for _, char in pairs(chars_at_loc) ]
742	 31:[ end ] >> 30:[ hp_minus = () -> ]
846	 32:[ if world.server then ] >> 33:[ if world.server ]
864	 33:[ hp_minus() ] >> 34:[ hp_minus! ]
844	 34:[ end ] >> 33:[ if world.server ]
879	 35:[ if world.client then ] >> 35:[ if world.client ]
897	 36:[ local ui = ui or require("ui") ] >> 36:[ ui = ui or require "ui" ]
925	 37:[ ui.tween_hit(char, 8 - i, hp_minus) ] >> 37:[ ui.tween_hit(char,8 - i, hp_minus) ]
877	 38:[ end ] >> 35:[ if world.client ]
963	 39:[ print("rat bite done, chars_at_loc:", chars_at_loc) ] >> 38:[ print("rat bite done, chars_at_loc:",chars_at_loc) ]
498	 40:[ end ] >> 23:[ for i = 3,4 ]
1028	 43:[ return print("TODO!") ] >> 40:[ print("TODO!") ]
1060	 46:[ return print("TODO!") ] >> 43:[ print("TODO!") ]
195	 53:[ _class_0.__parent.__init(self, ...) ] >> 11:[ super(...) ]
208	 54:[ self.requirements = { ] >> 12:[ @requirements = { ]
230	 56:[ "consume_stat", ] >> 13:[ {"consume_stat", "stamina", 1}, ]
245	 57:[ "stamina", ] >> 13:[ {"consume_stat", "stamina", 1}, ]
256	 58:[ 1 ] >> 13:[ {"consume_stat", "stamina", 1}, ]
265	 61:[ "status", ] >> 14:[ {"status", "active"}, ]
274	 62:[ "active" ] >> 14:[ {"status", "active"}, ]
290	 65:[ "distance", ] >> 15:[ {"distance", 1}, ]
301	 66:[ 1 ] >> 15:[ {"distance", 1}, ]
208	 68:[ } ] >> 12:[ @requirements = { ]
82	 93:[ self.text = "Sulk" ] >> 5:[ @text = "Sulk" ]
98	 94:[ self.description = "sulk" ] >> 6:[ @description = "sulk" ]
121	 95:[ self.hits_icon = { ] >> 7:[ @hits_icon = {0,0,1,1,0,0,0,0} ]
135	 96:[ 0, ] >> 7:[ @hits_icon = {0,0,1,1,0,0,0,0} ]
137	 97:[ 0, ] >> 7:[ @hits_icon = {0,0,1,1,0,0,0,0} ]
139	 98:[ 1, ] >> 7:[ @hits_icon = {0,0,1,1,0,0,0,0} ]
141	 99:[ 1, ] >> 7:[ @hits_icon = {0,0,1,1,0,0,0,0} ]
143	 100:[ 0, ] >> 7:[ @hits_icon = {0,0,1,1,0,0,0,0} ]
145	 101:[ 0, ] >> 7:[ @hits_icon = {0,0,1,1,0,0,0,0} ]
147	 102:[ 0, ] >> 7:[ @hits_icon = {0,0,1,1,0,0,0,0} ]
149	 103:[ 0 ] >> 7:[ @hits_icon = {0,0,1,1,0,0,0,0} ]
121	 104:[ } ] >> 7:[ @hits_icon = {0,0,1,1,0,0,0,0} ]
153	 105:[ self.speed = 3 ] >> 8:[ @speed = 3 ]
165	 106:[ self.distance = 1 ] >> 9:[ @distance = 1 ]