Work orders: relics, reagents and trophies under Materials

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-11-03 15:55:11 +00:00
parent fa43661a33
commit b3d0645d55
2 changed files with 35 additions and 0 deletions

11
game.py
View file

@ -4017,6 +4017,14 @@ def _order_sources() -> tuple[dict, dict]:
elif action["skill"] in GATHERING:
for output in [*action["outputs"], *(item for item, _qty, _odds in action.get("finds", []))]:
gather.setdefault(output, action["id"])
# What only fights get you: reagents, trophies and relics, from the first fight or dungeon with them.
for action in sorted(ACTIONS, key=lambda a: a["level"]):
if "enemy" not in action or action.get("special"):
continue
relic = [action["loot"]["relic"]] if "loot" in action else []
for item in [*relic, *(drop[0] for drop in action.get("drops", []))]:
if item in REAGENTS or item in TROPHIES or ITEMS[item].get("relic"):
gather.setdefault(item, action["id"])
return craft, gather
@ -6844,6 +6852,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-11-03", "title": "Combat materials on order", "notes": [
("new", "Work orders: relics, reagents and trophies under Materials ⚔️, by area."),
]},
{"date": "2026-11-02", "title": "Militia drilling", "notes": [
("fix", "Drilling the militia is no longer wiped before a raid is calculated. Last raid losses recalculated."),
]},