aboutsummaryrefslogtreecommitdiff
path: root/src/a_rat_scurry.moon
diff options
context:
space:
mode:
Diffstat (limited to 'src/a_rat_scurry.moon')
-rw-r--r--src/a_rat_scurry.moon25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/a_rat_scurry.moon b/src/a_rat_scurry.moon
new file mode 100644
index 0000000..cd00e0a
--- /dev/null
+++ b/src/a_rat_scurry.moon
@@ -0,0 +1,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!")