City needs in profession menus
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2579be2475
commit
472609ac70
2 changed files with 62 additions and 3 deletions
10
game.py
10
game.py
|
|
@ -3691,7 +3691,12 @@ def council_requests(world: dict, event: dict) -> list[dict]:
|
|||
have = sum(stock.get(food, 0) * ITEMS[food]["food"] for food in FOOD_ORDER)
|
||||
label = {"copper_sword": "Swords (any)", "iron_shield": "Shields (any)", "bread": "Food (any)"}[item] \
|
||||
if item in ("copper_sword", "iron_shield", "bread") else ITEMS[item]["name"]
|
||||
requests.append({"item": item, "label": label, "want": qty, "have": have})
|
||||
request = {"item": item, "label": label, "want": qty, "have": have}
|
||||
if item in ("copper_sword", "iron_shield"):
|
||||
request["any"] = ITEMS[item]["slot"] # any item in this slot counts
|
||||
if item == "bread":
|
||||
request["any"] = "food" # counted in meals
|
||||
requests.append(request)
|
||||
return requests
|
||||
|
||||
|
||||
|
|
@ -4747,6 +4752,9 @@ ORDER_RECIPES, ORDER_RAW = _order_sources()
|
|||
# What changed, shown on the Patch notes page. Newest first; every shipped change adds a
|
||||
# line here (new / balance / fix), and a new release a new entry on top.
|
||||
PATCH_NOTES = [
|
||||
{"date": "2026-10-23", "title": "City needs", "notes": [
|
||||
("new", "City needs are now indicated in profession menus."),
|
||||
]},
|
||||
{"date": "2026-10-22", "title": "Bosses", "notes": [
|
||||
("new", "Bosses and dragons: everyone in the fight gets their own loot."),
|
||||
("balance", "Level requirements for area boss reduced to be area level +5."),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue