Reconnaissance: new tiers, spyglass, lost hunters

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-11-12 10:38:10 +00:00
parent f042a718cd
commit 852c70af01
2 changed files with 46 additions and 5 deletions

View file

@ -685,6 +685,26 @@ class EventTest(unittest.TestCase):
game.tick(world, T0 + 2 * game.HOUR, random.Random(2))
self.assertAlmostEqual(raid["recon"], 2.0)
def test_a_spyglass_speeds_scouting_and_scouts_find_lost_hunters(self):
world = world_with(("sam", "commoner"))
p = world["players"]["sam"]
action = game.ACTION_BY_ID["recon_roads"]
plain = game.action_time(world, p, action)
p["equip"]["tool_reconnaissance"] = "copper_spyglass"
self.assertAlmostEqual(game.action_time(world, p, action), plain * 0.85)
game._minor_threat(world, T0, random.Random(1), "lost_hunters")
self.assertEqual(game.skill_mods(world, game.ACTION_BY_ID["hunt_deer"])["speed"], 1.5)
self.assertIsNone(game.start_action(world, p, "find_hunters", T0))
game.process_player(world, p, T0 + 3600, random.Random(1))
self.assertIsNone(game.active_problem(world, "lost_hunters"))
def test_old_worlds_get_the_spyglass_slot(self):
world = world_with(("sam", "commoner"))
del world["players"]["sam"]["equip"]["tool_reconnaissance"]
world["version"] = 45
game.migrate(world)
self.assertIsNone(world["players"]["sam"]["equip"]["tool_reconnaissance"])
def test_victory_rewards_garrison(self):
world = world_with(("wil", "commoner"))
raid = self.announce(world)