Clearer lost cargo fortune
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
43b7a3a193
commit
5bcf26f379
1 changed files with 4 additions and 2 deletions
6
game.py
6
game.py
|
|
@ -2364,8 +2364,10 @@ def _fortune(world: dict, now: float, rng: random.Random, kind: str | None = Non
|
||||||
goods = rng.sample([("stone", 200), ("logs", 200), ("bricks", 80), ("bread", 60), ("arrows", 150), ("plank", 40)], 2)
|
goods = rng.sample([("stone", 200), ("logs", 200), ("bricks", 80), ("bread", 60), ("arrows", 150), ("plank", 40)], 2)
|
||||||
for item, qty in goods:
|
for item, qty in goods:
|
||||||
city["stockpile"][item] = city["stockpile"].get(item, 0) + qty
|
city["stockpile"][item] = city["stockpile"].get(item, 0) + qty
|
||||||
_record(world, now, "fortune", kind, "📦", "Lost cargo was found on the road",
|
_record(world, now, "fortune", kind, "📦", f"An abandoned wagon brought {_listing(dict(goods))} to the stockpile",
|
||||||
[f"{_listing(dict(goods))} went into the stockpile."])
|
["Townsfolk found a trader's wagon abandoned on the road, its owner nowhere to be seen.",
|
||||||
|
f"They hauled its load into the city stockpile: {_listing(dict(goods))}. "
|
||||||
|
"The city uses it straight away, and anyone can put it towards a building."])
|
||||||
|
|
||||||
|
|
||||||
def _minor_threat(world: dict, now: float, rng: random.Random, kind: str | None = None) -> None:
|
def _minor_threat(world: dict, now: float, rng: random.Random, kind: str | None = None) -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue