summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2021-05-01 23:47:56 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2021-05-01 23:47:56 +0200
commita7003a8b3e00ff36470f1aeb931919f57cac2039 (patch)
tree6b4795fa3811cc1c83f4a505624ab6ced8e73d01 /data/examples/blackjack/global.fate
parent034153205de05ef2a4facf7aded9912ce8dfb6b5 (diff)
Updates Blackjack example, adds extra type support.
Diffstat (limited to 'data/examples/blackjack/global.fate')
-rw-r--r--data/examples/blackjack/global.fate6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/examples/blackjack/global.fate b/data/examples/blackjack/global.fate
index a20704e..d08706b 100644
--- a/data/examples/blackjack/global.fate
+++ b/data/examples/blackjack/global.fate
@@ -6,7 +6,7 @@
(global (lambda text (int)) coins_word)
-(set coins_word
+(set! coins_word
(lambda ((int i))
(if_else (= (var i) 1)
(text a single coin)
@@ -18,7 +18,7 @@
(declare_text_effect action_description)
(define_sequence money_acquisition ((int amount))
- (set player.money (+ player.money amount))
+ (set! player.money (+ player.money amount))
(if (> amount 0)
(text_effect action_description
You acquired (eval coins_word (var amount))!
@@ -27,7 +27,7 @@
)
(define_sequence money_loss ((int amount))
- (set player.money (- player.money amount))
+ (set! player.money (- player.money amount))
(if (> amount 0)
(text_effect action_description
You lost (eval coins_word (var amount)).