aboutsummaryrefslogtreecommitdiff
path: root/src/a_ruminate.moon
diff options
context:
space:
mode:
Diffstat (limited to 'src/a_ruminate.moon')
-rw-r--r--src/a_ruminate.moon29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/a_ruminate.moon b/src/a_ruminate.moon
new file mode 100644
index 0000000..cf84eef
--- /dev/null
+++ b/src/a_ruminate.moon
@@ -0,0 +1,29 @@
+reg = require "ability_reg"
+import Ability from reg
+
+class Ruminate extends Ability
+ @text = "Ruminate"
+ @description = "Ruminate"
+ @hits_icon = {0,0,0,0,1,1,1,1}
+ @speed = 5
+ @distance = 1
+ new: (...)=>
+ super(...)
+ @requirements = {
+ {"consume_stat", "stamina", 1},
+ {"status", "active"},
+ {"distance", 1},
+ }
+ 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)->
+ for _, member in pairs(party.members)
+ char\set_field("hp",char.data.hp + 1)
+ load: ()=>
+ print("TODO!")
+
+ unload:()=>
+ print("TODO!")