Mood bar: gradient, growing / falling
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9daa648017
commit
faf186f102
3 changed files with 10 additions and 10 deletions
1
game.py
1
game.py
|
|
@ -4585,7 +4585,6 @@ def happiness(world: dict, now: float) -> dict:
|
|||
band = mood(world)
|
||||
return {
|
||||
"score": round(city["happiness"], 3), "target": round(target, 3), "name": band["name"], "icon": band["icon"],
|
||||
"heading": next(b["name"] for b in MOODS if target < b["below"]),
|
||||
"effects": {key: band[key] for key in ("growth", "militia", "work", "leave")},
|
||||
"needs": {key: {**needs[key], "score": round(needs[key]["score"], 3), "weight": NEEDS[key]} for key in active},
|
||||
"locked": [key for key in NEEDS if key not in active],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue