Queue: gathering too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a723558fb2
commit
45a51476a9
3 changed files with 19 additions and 9 deletions
7
game.py
7
game.py
|
|
@ -3185,15 +3185,15 @@ def stop(player: dict, reason: str | None = None) -> None:
|
|||
|
||||
|
||||
def queueable(action: dict) -> bool:
|
||||
"""Crafting: turns materials into something. Only these can be queued."""
|
||||
return bool(action["inputs"] and action["outputs"]) and not (
|
||||
"""Crafting and gathering: makes or gathers something. Only these can be queued."""
|
||||
return bool(action["outputs"]) and not (
|
||||
action.get("enemy") or action.get("special") or action.get("together"))
|
||||
|
||||
|
||||
def queue_reason(world: dict, player: dict, action: dict) -> str | None:
|
||||
"""Why it can't go in the queue. Materials are checked when its turn comes."""
|
||||
if not queueable(action):
|
||||
return "Only crafting can be queued"
|
||||
return "Only crafting and gathering can be queued"
|
||||
if skill_level(player, action["skill"]) < action["level"]:
|
||||
return f"Needs level {action['level']}"
|
||||
if action.get("pattern") and action["pattern"] not in player.get("patterns", []):
|
||||
|
|
@ -6286,6 +6286,7 @@ ORDER_RECIPES, ORDER_RAW = _order_sources()
|
|||
# line here (new / balance / fix), and a new release a new entry on top.
|
||||
PATCH_NOTES = [
|
||||
{"date": "2026-10-27", "title": "Prayer", "notes": [
|
||||
("new", "Gathering can be queued."),
|
||||
("new", "Make X and queue counts go up to 9,999. Queue has no length cap."),
|
||||
("balance", "Rebalanced favour values of items"),
|
||||
("balance", "Prospecting: 3 ore per try (was 5), 50% gem chance (was 15%)."),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue