This commit is contained in:
33333-33333 2026-07-18 13:06:02 +09:00
commit f657b6a4a4
94 changed files with 3970 additions and 1241 deletions

View file

@ -49,6 +49,7 @@ const TARINAI_ACTION_LOCK_SECONDS = {
seek_comfort_temperature: 5.8,
panic_escape: 2.1,
hide_at_owned_structure: 6.4,
crowd_escape: 2.4,
approach_friend: 6.4,
approach_parent_or_child: 7.0,
approach_mate: 5.6,
@ -77,6 +78,7 @@ const TARINAI_ACTION_PRIORITY = {
birth_ritual: 72,
approach_mate: 72,
approach_parent_or_child: 66,
crowd_escape: 6,
approach_friend: 66,
eat_food: 50,
drink_water: 48,
@ -231,6 +233,7 @@ function startNeedDrivenEmergencyReaction(tarinai, breaker = null, reason = "\u3
}
const panicAction = actions.find(a => a.id === "panic_escape");
if (!panicAction) return false;
if (breaker && breaker !== tarinai) tarinai.lastPanicThreat = breaker;
const choice = { need: "safety", tiedNeeds: ["safety"], max: Number(tarinai.needRaw?.safety || tarinai.needs?.safety || 0) || 80 };
const reasonText = reason && reason.endsWith("\u3002") ? reason : buildReasonText("safety", choice.tiedNeeds, panicAction, tarinai, world);
if (globalThis.TarinaiNeedsRuntime?.startNeedAction?.(tarinai, world, choice, panicAction, reasonText)) {