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!")