19 Commits

Author SHA1 Message Date
dobbry-vechur 4cf6dc8245 Followers and guards keep to their obligations when getting food
- food options judged against obligations when found and when started
- an NPC that overrides its obligations for food says why
- a hungry follower whose obligations keep it from food says it is hungry
2026-10-25 10:58:47 +04:00
dobbry-vechur 4450eb2b74 Intake stops when more is of no use
- every intake stops at a full stomach, food also at a meal already eaten
- drinks stop at the full line, before the engorged one
- a harvest is eaten later, like carried food
2026-10-25 10:58:47 +04:00
dobbry-vechur 07910a5d8c Meals take real time and give way to harm and orders
- a decision that acted keeps its move surplus or debt into the next turn
- dropped meals are never resumed
- a meal or fire cut short by harm or an order hands back to its task
2026-10-25 10:58:47 +04:00
dobbry-vechur 30ddeaa935 Option costs name what holds the NPC and what was checked
- an option names its walk and the stay that holds the NPC at its spot
- an option names what its judgment rests on: assumption, own tile, destination or route
- stay on its own tile and walk with no route have named forms
2026-10-25 10:41:21 +04:00
dobbry-vechur e20bd74d70 Only tests set a committed goal directly
- tests commit a goal without ending the old pursuit
- the game commits a goal only through arbitration
2026-10-25 10:41:20 +04:00
dobbry-vechur 0954d0f4dc NPCs stop fighting once the threat is gone
- fight or flight ends when decision tree stops picking it
- an NPC with no foe left goes back to following, orders and needs
2026-10-23 23:05:42 +04:00
dobbry-vechur 60b53fdb0e NPCs drink from an open can on the ground
- thirsty or hungry NPC with nothing to pour into drinks where can lies
- drink stops when NPC is unsafe, ordered elsewhere, or out of reach
- stopped drink drops the fetch and spills nothing
2026-10-17 21:18:27 +04:00
dobbry-vechur 9014d44304 NPCs pour an open can into a container they carry
- NPC empties open can on ground into carried container with space
- pour keeps the carried weight of pourer and carrier current
- NPC reconsiders refused open can when its needs or containers change
2026-10-17 21:18:22 +04:00
dobbry-vechur f495fc8850 NPCs leave open containers that hold something
- NPC doesn't fetch or carry open containers with contents
- matches player's autopickup and zone sorting
2026-10-17 21:18:12 +04:00
dobbry-vechur 50e7113332 The consume activity feeds the character that runs it
- NPC running the activity eats unprompted
- only the player sees eating prompts and consume menu
2026-10-17 21:18:12 +04:00
dobbry-vechur fdb8f24c97 Followers fetch only items within their follow reach
- follower fetches only items inside the reach its follow goal keeps it in
- fetch under way is dropped when its target lies outside that reach
2026-10-17 21:18:11 +04:00
dobbry-vechur 8145930d2d NPCs keep the liquid left in a container they open
- NPC pours the rest into a container it carries
- hungry or thirsty NPC drinks rest
- NPC with no use for the rest sets the open can down
2026-10-17 21:18:11 +04:00
dobbry-vechur 2ce2600e85 Idle NPCs don't start a harvest their obligations forbid
- adjacent harvests in address_needs() checked nothing, then got cancelled
- shared may_occupy_here() with the activity review
- added idle_harvest_keeps_to_obligations
2026-10-13 18:58:35 +04:00
dobbry-vechur 13799089de Woken NPCs lie back down where they are; a stalled sleep yields to work
- three wakes in half an hour stall sleep until nothing else is on offer
- a woken NPC lies back down on its own tile, or searches again
- waking an NPC by talk gives an hour awake, not a sleep rule change
- added woken passengers to the NPC trip bench
2026-10-13 18:58:35 +04:00
dobbry-vechur d4bcc0ad8c Settling NPCs react to danger, needs and orders
- an NPC lying down awake ignored everything until it fell asleep
- each turn it gets up for a hostile in view, a stronger need or an order
- one that keeps lying down past an obligation says so
- added sleep and settling cases to the NPC trip bench
2026-10-13 17:45:18 +04:00
dobbry-vechur e2cbe75164 Followers and guards sleep only where their obligations allow
- sleep search stays inside the reach and skips spots the NPC may not use
- the npc_sleep action asks the same permission as the behavior tree
- an NPC that sleeps past an obligation says so
- a failed sleep search pauses sleep a minute unless something changes
2026-10-13 17:45:17 +04:00
dobbry-vechur 2b2d3d84c6 NPCs drink within what their obligations allow
- added npc_intention, adopted before every dispatch
- goal commitment uses should_interrupt and end_need_pursuit
- water candidates filtered by need_view
- address_needs walks and forage/harvest gated by obligations
- added water_out_of_reach complaint and override speech
- idle followers call complain()
2026-10-12 23:39:51 +04:00
dobbry-vechur 051eb8482f Self-care trips keep to the NPC's reach
- added npc_reach_policy with an approach bound and npc_reach_snapshot
- resolve_trip routes inside the reach first, then without it
- retained trip records the constrained flag, approach bound and reach
- move_to_and_verify stops when a re-resolved trip changes its end tile or reach status
- added trip_cost and water_option_cost
2026-10-12 23:16:58 +04:00
dobbry-vechur c55dd4bc9c NPC obligations and the shared interruption rule
- added npc_option_cost, npc_permission_verdict and npc_need_view
- added npc::judge_option for accompany, post, goto and stay-awake
- added npc::obligation_reach and is_on_shift
- added should_interrupt with a critical override
- oracle on_shift and duty_urgency use npc::is_on_shift
2026-10-12 23:16:58 +04:00