summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-08-15 13:54:30 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-08-15 13:54:30 +0200
commit6655cdcd1c28ac36c8af144573c396d96b9dceee (patch)
treef0eb3d8bb90e5e44fef0de319e5fd8824e72ad7a /data/examples/monster_battle/include/items.fate
parent8fd556f0065b7a634602cf4a8b666a426d4e8de6 (diff)
Updates example, allows lambdas w/o params.
Diffstat (limited to 'data/examples/monster_battle/include/items.fate')
-rw-r--r--data/examples/monster_battle/include/items.fate8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/examples/monster_battle/include/items.fate b/data/examples/monster_battle/include/items.fate
index 3ddca93..b5100ba 100644
--- a/data/examples/monster_battle/include/items.fate
+++ b/data/examples/monster_battle/include/items.fate
@@ -3,11 +3,11 @@
(require types/item.fate)
(require player.fate)
-(declare_variable item potion)
+(global item potion)
-(define_macro get_item
+(define_procedure get_item
(
- (item_ptr item)
+ ((ptr item) item)
)
- (add (param item) player.inventory)
+ (add (var item) player.inventory)
)