This commit is contained in:
33333-33333 2026-07-03 20:57:02 +09:00
commit 88f618cadf
55 changed files with 1299 additions and 447 deletions

View file

@ -52,7 +52,13 @@
applyNeedShock(t, { safety: dt * 4 });
if (t.state !== "fight") t.fearTimer = Math.max(t.fearTimer || 0, 0.10);
}
if (t.intimidateTimer <= 0.04) t.intimidateTargetId = null;
if (t.intimidateTimer <= 0.04) {
t.intimidateTargetId = null;
if (t.state === "intimidate" || t.state === "ant_intimidate") {
t.spriteLockUntil = 0;
t.setActionState?.("idle", { target: null, reason: "威嚇を終えた", clearTarget: true, sleeping: false });
}
}
if (t.birthRitualTimer > 0) {
const beforeBirthTimer = t.birthRitualTimer;
t.birthRitualTimer = Math.max(0, t.birthRitualTimer - dt);
@ -147,7 +153,7 @@
const tempStatus = t.temperatureStatus || t.world?.temperatureStatusFor?.(t.tempComfort ?? (CONFIG.standardTemperature ?? 15), t) || { discomfort: 0, stressExcess: 0, harmExcess: 0, direction: "comfort" };
const coldDiscomfort = tempStatus.direction === "cold" ? Math.max(0, tempStatus.discomfort || 0) : 0;
const hungerScale = t.metabolicHungerMultiplier ? t.metabolicHungerMultiplier() : (typeof tarinaiMetabolicHungerScale === "function" ? tarinaiMetabolicHungerScale(t) : 1);
t.hunger += CONFIG.hungerPerMinute * minute * t.trait.hunger * hungerScale * (1 + coldDiscomfort * 0.018);
t.hunger += CONFIG.hungerPerMinute * minute * 0.75 * t.trait.hunger * hungerScale * (1 + coldDiscomfort * 0.018);
t.loneliness += CONFIG.lonelinessPerMinute * minute * (2 - t.trait.social);
t.energy -= CONFIG.energyPerMinute * minute * t.trait.sleep * (t.state === "sleep" ? 0.025 : 1);
if (t.state === "sleep" || t.sleeping) {