blob: cd00e0a3853658f0f0290e8b362ee12fca36628c (
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
|
reg = require "ability_reg"
import Ability from reg
class RatScurry extends Ability
@text = "Scurry"
@speed = 5
@distance = 1
new: (...)=>
super(...)
@requirements = {
{"status", "active"},
}
target: (world, party, char) =>
room = world.player_party.room
enemy_party = room.parties[1]
if enemy_party == party
enemy_party = room.parties[2]
use: (world, party, char)->
print("Rat scurry used")
load: ()=>
print("TODO!")
unload:()=>
print("TODO!")
|