Mood bar: gradient, growing / falling

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-28 15:36:38 +00:00
parent 9daa648017
commit faf186f102
3 changed files with 10 additions and 10 deletions

View file

@ -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],