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:
rope 2026-10-20 14:21:34 +01:00
parent ba7556de4d
commit ea1bae9b53
3 changed files with 11 additions and 9 deletions

View file

@ -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):