aboutsummaryrefslogtreecommitdiff
path: root/debug/a_rat_bite.lua.X
blob: af0bb55edb04812bfcb0ac059085f8762f9618f8 (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
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 ]
75	 7:[ local _parent_0 = Ability ] >> 4:[ class RatBite extends Ability ]
360	 10:[ local room = world.player_party.room ] >> 18:[ room = world.player_party.room ]
393	 11:[ local enemy_party = room.parties[1] ] >> 19:[ enemy_party = room.parties[1] ]
427	 12:[ if enemy_party == party then ] >> 20:[ if enemy_party == party ]
452	 13:[ enemy_party = room.parties[2] ] >> 21:[ enemy_party = room.parties[2] ]
425	 14:[ end ] >> 20:[ if enemy_party == party ]
513	 17:[ local chars_at_loc = world.room.data.locations[4] ] >> 23:[ chars_at_loc = world.room.data.locations[4] ]
561	 18:[ if world.server then ] >> 24:[ if world.server ]
578	 19:[ local a_chars_at_loc = { } ] >> 25:[ a_chars_at_loc = {} ]
611	 20:[ for _, v in ipairs(chars_at_loc) do ] >> 26:[ for _,v in ipairs(chars_at_loc) ]
637	 21:[ table.insert(a_chars_at_loc, world.player_party:member(v.uname)) ] >> 27:[ table.insert(a_chars_at_loc,world.player_party\member(v.uname)) ]
601	 22:[ end ] >> 26:[ for _,v in ipairs(chars_at_loc) ]
704	 23:[ chars_at_loc = a_chars_at_loc ] >> 28:[ chars_at_loc = a_chars_at_loc ]
559	 24:[ end ] >> 24:[ if world.server ]
736	 25:[ local hp_minus ] >> 29:[ hp_minus = () -> ]
736	 26:[ hp_minus = function() ] >> 29:[ hp_minus = () -> ]
770	 27:[ for _, char in pairs(chars_at_loc) do ] >> 30:[ for _, char in pairs(chars_at_loc) ]
795	 28:[ char:set_field("hp", char.data.hp - 1) ] >> 31:[ char\set_field("hp",char.data.hp - 1) ]
756	 29:[ end ] >> 30:[ for _, char in pairs(chars_at_loc) ]
736	 30:[ end ] >> 29:[ hp_minus = () -> ]
837	 31:[ if world.server then ] >> 32:[ if world.server ]
854	 32:[ hp_minus() ] >> 33:[ hp_minus! ]
835	 33:[ end ] >> 32:[ if world.server ]
868	 34:[ if world.client then ] >> 34:[ if world.client ]
885	 35:[ local ui = ui or require("ui") ] >> 35:[ ui = ui or require "ui" ]
912	 36:[ ui.tween_hit(char, 1, hp_minus) ] >> 36:[ ui.tween_hit(char,1, hp_minus) ]
866	 37:[ end ] >> 34:[ if world.client ]
945	 38:[ return print("rat bite done, chars_at_loc:", chars_at_loc) ] >> 37:[ print("rat bite done, chars_at_loc:",chars_at_loc) ]
1010	 41:[ return print("TODO!") ] >> 39:[ print("TODO!") ]
1042	 44:[ return print("TODO!") ] >> 42:[ print("TODO!") ]
210	 51:[ _class_0.__parent.__init(self, ...) ] >> 11:[ super(...) ]
223	 52:[ self.requirements = { ] >> 12:[ @requirements = { ]
245	 54:[ "consume_stat", ] >> 13:[ {"consume_stat", "stamina", 1}, ]
260	 55:[ "stamina", ] >> 13:[ {"consume_stat", "stamina", 1}, ]
271	 56:[ 1 ] >> 13:[ {"consume_stat", "stamina", 1}, ]
280	 59:[ "status", ] >> 14:[ {"status", "active"}, ]
289	 60:[ "active" ] >> 14:[ {"status", "active"}, ]
305	 63:[ "distance", ] >> 15:[ {"distance", 1}, ]
316	 64:[ 1 ] >> 15:[ {"distance", 1}, ]
223	 66:[ } ] >> 12:[ @requirements = { ]
85	 91:[ self.text = "Rat Bite" ] >> 5:[ @text = "Rat Bite" ]
105	 92:[ self.description = "A rat's bite" ] >> 6:[ @description = "A rat's bite" ]
136	 93:[ self.hits_icon = { ] >> 7:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
150	 94:[ 0, ] >> 7:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
152	 95:[ 0, ] >> 7:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
154	 96:[ 0, ] >> 7:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
156	 97:[ 0, ] >> 7:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
158	 98:[ 1, ] >> 7:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
160	 99:[ 0, ] >> 7:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
162	 100:[ 0, ] >> 7:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
164	 101:[ 0 ] >> 7:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
136	 102:[ } ] >> 7:[ @hits_icon = {0,0,0,0,1,0,0,0} ]
168	 103:[ self.speed = 3 ] >> 8:[ @speed = 3 ]
180	 104:[ self.distance = 1 ] >> 9:[ @distance = 1 ]