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
4
game.py
4
game.py
|
|
@ -128,7 +128,7 @@ TOOLS = {"mining": ("pickaxe", "⛏️"), "woodcutting": ("axe", "🪓"), "farmi
|
|||
TOOL_SPEED = [0.15, 0.30, 0.38, 0.45, 0.52, 0.60]
|
||||
# Crafting stations: a second slot for every crafting skill, beside its tool, and as fast.
|
||||
# Builders make every station, from the tier's planks and hardware and a material from
|
||||
# another trade. A station speeds what's made at it, not work like the building site.
|
||||
# another trade. A station speeds what's made at it, and a workbench the building site too.
|
||||
# skill: (id suffix, noun, glyph, other material)
|
||||
STATIONS = {
|
||||
"construction": ("workbench", "workbench", "toolbox", "bar"),
|
||||
|
|
@ -1963,7 +1963,7 @@ def action_time(world: dict, player: dict, action: dict) -> float:
|
|||
if tool:
|
||||
seconds *= 1 - ITEMS[tool]["speed"]
|
||||
station = player["equip"].get(f"station_{action['skill']}")
|
||||
if station and action["outputs"]:
|
||||
if station and (action["outputs"] or action.get("special") == "labour"):
|
||||
seconds *= 1 - ITEMS[station]["speed"]
|
||||
if action["skill"] == "smithing":
|
||||
seconds *= 1 - 0.08 * building_level(world, "smithy")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue