| summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'data/examples/monster_battle/include/creatures.fate')
| -rw-r--r-- | data/examples/monster_battle/include/creatures.fate | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/data/examples/monster_battle/include/creatures.fate b/data/examples/monster_battle/include/creatures.fate index 393473e..1cb8d1d 100644 --- a/data/examples/monster_battle/include/creatures.fate +++ b/data/examples/monster_battle/include/creatures.fate @@ -2,24 +2,12 @@ (require types/creature.fate) -(global creature monster_0) -(global creature monster_1) -(global creature monster_2) -(global creature monster_3) -(global creature monster_4) -(global creature monster_5) +(global (list creature) monster_templates) (global (lambda creature ()) random_creature) (set random_creature - (lambda () - (switch (rand 0 5) - (0 (var monster_0)) - (1 (var monster_0)) - (2 (var monster_0)) - (3 (var monster_0)) - (4 (var monster_0)) - (var monster_5) - ) - ) + (lambda () (access (rand 0 (size monster_templates)) monster_templates)) ) + +( |


