aboutsummaryrefslogtreecommitdiff
path: root/src/a_pass.moon
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-01-29 16:20:10 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-01-29 16:20:10 -0600
commitc2926c5ec74d7e37da395c8c32a7ff2b4cae7d06 (patch)
treeac2bb208dab1274cdc5e9059ffe014ae19181a4c /src/a_pass.moon
downloadfools_rush_in-c2926c5ec74d7e37da395c8c32a7ff2b4cae7d06.tar.gz
fools_rush_in-c2926c5ec74d7e37da395c8c32a7ff2b4cae7d06.tar.bz2
fools_rush_in-c2926c5ec74d7e37da395c8c32a7ff2b4cae7d06.zip
All the files
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