aboutsummaryrefslogtreecommitdiff
path: root/src/a_pass.moon
diff options
context:
space:
mode:
Diffstat (limited to 'src/a_pass.moon')
-rw-r--r--src/a_pass.moon34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/a_pass.moon b/src/a_pass.moon
new file mode 100644
index 0000000..1f9ed21
--- /dev/null
+++ b/src/a_pass.moon
@@ -0,0 +1,34 @@
+
+reg = require "ability_reg"
+import Ability from reg
+
+mod = ...
+
+class Pass extends Ability
+ @text = "Pass"
+ @description = "Do nothing..."
+ @hits_icon = {0,0,0,0,0,0,0,0}
+ @speed = 0
+ @sprite = "data/no_action.png"
+ new: (...)=>
+ super("Pass",{})
+ @requirements = {}
+ target: (world, party, char) =>
+ nil
+
+ load: () =>
+ main = require "main"
+ infocard = am.group!\tag("infocard")
+ main.root("screen")\append(infocard)
+
+ unload: () =>
+ main = require "main"
+ infocard = main.root("infocard")
+ main.root("screen")\remove(infocard)
+
+ use: (world, party, char)=>
+ print("Pass used")
+
+mod.Pass = Pass
+
+mod