Implemented Stronghold-style food mechanics and individual survival stats to create a compelling survival loop for Kosmograd.
Food System
- Global consumption: 10 food/colonist/day from stockpile
- If sufficient food → colonists eat, hunger resets
- If insufficient → nobody eats, health/morale decline begins
Survival Stats (UnitDetails.gd)
- Hunger: Depletes 33%/day without food, critical at day 3
- Health: Master stat, damaged by starvation (-34/day) and oxygen loss (-20/min)
- Morale: Crashes during starvation (-40/day), slow decay otherwise (-2/day)
Death & Game Over
- Colonists die at 0 health
- Game over screen shows death causes by type (starvation, oxygen deprivation)
UI Improvements
- Day counter tracks current sol
- Resource panel displays consumption rates (e.g., "Food: 500 (-30/day)")
- Unit details panel ready for stat visualization
- Debug key ']' to skip days for testing
Timeline example: 500 food + 3 colonists = starvation begins ~day 17, deaths ~day 21