Encounter cards: gold range as a reward chip, drop the odds lines
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ba7556de4d
commit
ea1bae9b53
3 changed files with 11 additions and 9 deletions
|
|
@ -163,7 +163,8 @@ class ActionTest(unittest.TestCase):
|
|||
summary = game.process_player(world, p, T0 + 3600, random.Random(5))
|
||||
self.assertGreater(summary["done"], 50) # a fight lasts as long as it takes
|
||||
self.assertEqual(summary["wins"] + summary["losses"], summary["done"])
|
||||
self.assertEqual(p["gold"], summary["wins"] * 2)
|
||||
low, high = game.ACTION_BY_ID["fight_wolves"]["gold"]
|
||||
self.assertTrue(summary["wins"] * low <= p["gold"] <= summary["wins"] * high)
|
||||
|
||||
|
||||
class GiftTest(unittest.TestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue