| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-09-19 13:59:20 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-09-19 13:59:20 +0200 |
| commit | 63b3c43af5d402530a8c10c1f71aa0e7ca3aa06f (patch) | |
| tree | c0703ae0bc72aac35dc92684588cac200fa5d698 /data/examples/blackjack/global.fate | |
| parent | 190cf9e6c79375ab1ae9f36b5d13f1fd07c082e5 (diff) | |
...
Diffstat (limited to 'data/examples/blackjack/global.fate')
| -rw-r--r-- | data/examples/blackjack/global.fate | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/data/examples/blackjack/global.fate b/data/examples/blackjack/global.fate index 9c10c9f..16574e6 100644 --- a/data/examples/blackjack/global.fate +++ b/data/examples/blackjack/global.fate @@ -9,8 +9,8 @@ (set coins_word (lambda ((int i)) (if_else (= (var i) 1) - (text a single coin ) - (text (var i) coins ) + (text a single coin) + (text (var i) coins) ) ) ) @@ -18,8 +18,8 @@ (declare_text_effect action_description) (define_sequence money_acquisition ((int amount)) - (set player.money (+ (var player.money) (var amount))) - (if (> (var amount) 0) + (set player.money (+ player.money amount)) + (if (> amount 0) (text_effect action_description You acquired (eval coins_word (var amount))! ) @@ -27,8 +27,8 @@ ) (define_sequence money_loss ((int amount)) - (set player.money (- (var player.money) (var amount))) - (if (> (var amount) 0) + (set player.money (- player.money amount)) + (if (> amount 0) (text_effect action_description You lost (eval coins_word (var amount)). ) |


