Commit Graph

16 Commits

Author SHA1 Message Date
Rijad Zuzo 37f262fb84 feat: let the player live as a citizen with needs and carried inventory 2026-08-11 00:18:39 +02:00
Rijad Zuzo f72aa659d2 feat: let villagers witness and trust the player restock 2026-08-10 23:36:47 +02:00
Rijad Zuzo d950c3da68 feat: add paired goat care 2026-07-30 23:03:15 +02:00
Rijad Zuzo e3aa3440a2 feat: add deterministic goat routine 2026-07-26 23:52:56 +02:00
Rijad Zuzo f79c2bb630 feat: introduce identity-backed goat 2026-07-26 22:26:00 +02:00
Rijad Zuzo 79dd503343 feat: add missing wood opportunities 2026-07-16 01:50:19 +02:00
Rijad Zuzo c722e32a88 feat: add knowledge-gated pantry opportunities 2026-07-13 00:46:56 +02:00
Rijad Zuzo 9a479ba182 feat: add provenance-aware npc communication 2026-07-11 19:58:47 +02:00
Rijad Zuzo ce8f71082b refactor: clarify simulation ownership 2026-07-10 11:02:11 +02:00
Rijad Zuzo 0f7b12080e feat: define action completion costs 2026-07-10 10:36:08 +02:00
admin 8a1913c5ae feat: structured narrative event feed with per-NPC inspector timeline
Add narrative event types (task_started, npc_slept, npc_died, resource_depleted) alongside economic transfers. EconomicEventRecord gains create_narrative factory and human-readable description method. SimulationManager records task-start and sleep/death events, exposes get_npc_events() for per-NPC history queries. Inspector now shows a Recent timeline of the last 5 events for the selected NPC, plus displays carried wood count. Relax EconomicEventRecord validation to accept non-economic events. Update roadmap with completed milestones.
2026-07-08 19:02:11 +02:00
admin c61d286005 feat: wood inventory, carrying, and woodpile storage
Wood now follows the same gather-carry-deposit pattern as food. NPCs put harvested wood into inventory, walk to the VillageWoodpile StorageNode, and deposit it. Village wood syncs from storage. Player harvesting also routes wood to the woodpile. ActiveWorldAdapter exposes woodpile routing for DEPOSIT_WOOD action targeting. WorldViewManager recognizes wood inventory changes. Tests verify woodpile node existence, storage ID, navigation reachability, and adapter routing.
2026-07-08 18:55:51 +02:00
admin 4604dc6d5a feat: add NPC schedules with sleep, meal, and work periods
Add ACTION_SLEEP with home-position targeting and energy restoration. Embed schedule periods (SLEEP/MEAL/WORK/DISCRETIONARY) in ActionSelectionSystem with TimeOfDay from SimulationClock. NPCs sleep at night when energy is low, eat during meal periods when hungry, and work/discretionary the rest of the cycle. Home position stored per NPC and serialized through NPCStateRecord with backward-compatible fallback. Cycle duration persisted through save/restore. Includes headless test for sleep period, work period, meal hunger, energy restoration, serialization round-trip, and home targeting without world adapter.
2026-07-08 17:44:39 +02:00
admin f9601a67d1 feat: add structured economic events 2026-07-05 18:04:11 +02:00
admin 6dbb395bd6 feat: add location-based food storage loop 2026-07-05 17:57:24 +02:00
admin f816f3976a feat: add simulation action definitions 2026-07-05 13:35:33 +02:00