summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'data/examples/monster_battle/include/items.fate')
-rw-r--r--data/examples/monster_battle/include/items.fate13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/examples/monster_battle/include/items.fate b/data/examples/monster_battle/include/items.fate
new file mode 100644
index 0000000..3ddca93
--- /dev/null
+++ b/data/examples/monster_battle/include/items.fate
@@ -0,0 +1,13 @@
+(fate_version 1)
+
+(require types/item.fate)
+(require player.fate)
+
+(declare_variable item potion)
+
+(define_macro get_item
+ (
+ (item_ptr item)
+ )
+ (add (param item) player.inventory)
+)