Workbench speeds the building site
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9ff7a22a5d
commit
111dc9049f
3 changed files with 6 additions and 5 deletions
|
|
@ -1865,11 +1865,12 @@ class StationAndStorageTest(unittest.TestCase):
|
|||
self.assertEqual(game.ACTION_BY_ID["smith_iron_mortar_and_pestle"]["inputs"], {"iron_bar": 2, "oak_logs": 1})
|
||||
self.assertEqual(game.ACTION_BY_ID["make_oak_workbench"]["skill"], "construction")
|
||||
|
||||
def test_a_workbench_doesnt_speed_the_building_site(self):
|
||||
def test_a_workbench_speeds_the_building_site(self):
|
||||
labour = game.ACTION_BY_ID["labour"]
|
||||
bare = game.action_time(self.world, self.bob, labour)
|
||||
self.bob["equip"]["station_construction"] = "magic_workbench"
|
||||
self.assertEqual(game.action_time(self.world, self.bob, labour), bare)
|
||||
speed = game.ITEMS["magic_workbench"]["speed"]
|
||||
self.assertAlmostEqual(game.action_time(self.world, self.bob, labour), bare * (1 - speed))
|
||||
|
||||
def test_stations_move_out_of_the_tool_slot(self):
|
||||
self.world["version"] = 22
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue