Construction: buildings rise by labour; planks and hammers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4093245b8e
commit
a4e4bd4385
6 changed files with 180 additions and 47 deletions
2
app.py
2
app.py
|
|
@ -104,6 +104,7 @@ def player_view(world: dict, player: dict, now: float) -> dict:
|
|||
view["fight_damage"] = {a["id"]: round(game.fight_damage(player, a, blessed), 1)
|
||||
for a in game.ACTIONS if a["skill"] == "combat"}
|
||||
view["pp"] = int(player["pp"])
|
||||
view["labour_per_action"] = game.labour_per_action(player)
|
||||
view["levels"] = {skill: game.skill_level(player, skill) for skill in game.SKILL_IDS}
|
||||
view["slots"] = game.bank_slots(world, player)
|
||||
view["stack"] = game.stack_size(world)
|
||||
|
|
@ -139,6 +140,7 @@ def city_view(world: dict, now: float) -> dict:
|
|||
"buildings": buildings,
|
||||
"queue": city["queue"],
|
||||
"devotion": round(city.get("devotion", 0), 1),
|
||||
"townsfolk_labour": round(city["population"] * game.TOWNSFOLK_LABOUR, 1),
|
||||
"ward": game.ward(world),
|
||||
"treasury": int(city["treasury"]),
|
||||
"stockpile": city["stockpile"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue