This commit is contained in:
33333-33333 2026-07-11 21:13:39 +09:00
commit d14550dad6
78 changed files with 2827 additions and 563 deletions

View file

@ -45,6 +45,12 @@
t.updateSpecialDiseases(dt);
if (t.updateBurning) t.updateBurning(dt);
if (t.updateItemEffects) t.updateItemEffects(dt);
if (t.hasItemEffect?.("sedative")) {
t.fearTimer = Math.max(0, (t.fearTimer || 0) - dt * 1.8);
t.intimidatedTimer = Math.max(0, (t.intimidatedTimer || 0) - dt * 1.4);
t.fightMochiTimer = Math.max(0, (t.fightMochiTimer || 0) - dt * 2.6);
if (typeof applyNeedRelief === "function") applyNeedRelief(t, { safety: -dt * 2.6, social: -dt * 0.5 });
}
if (t.dead) return { done: true };
t.loveMochiTimer = Math.max(0, (t.loveMochiTimer || 0) - dt);
t.fightMochiTimer = Math.max(0, (t.fightMochiTimer || 0) - dt);
@ -56,7 +62,7 @@
t.intimidateTargetId = null;
if (t.state === "intimidate" || t.state === "ant_intimidate") {
t.spriteLockUntil = 0;
t.setActionState?.("idle", { target: null, reason: "威嚇を終えた", clearTarget: true, sleeping: false });
t.setActionState?.("idle", { target: null, reason: "\u5a01\u5687\u3092\u7d42\u3048\u305f", clearTarget: true, sleeping: false });
}
}
if (t.birthRitualTimer > 0) {
@ -194,8 +200,11 @@
t.vx *= Math.pow(0.996, dt * 60);
t.vy *= Math.pow(0.996, dt * 60);
} else if (t.world.weather === "light_rain") {
t.energy += dt * 0.018;
applyNeedRelief(t, { health: -dt * 1, safety: -dt * 1 });
const shelteredFromRain = global.TarinaiRainShelterSystem?.isSheltered?.(t.world, t.x, t.y) || false;
if (!shelteredFromRain) {
t.energy += dt * 0.018;
applyNeedRelief(t, { health: -dt * 1, safety: -dt * 1 });
}
} else if (t.world.weather === "sunny") {
t.vx *= Math.pow(1.001, dt * 60);
t.vy *= Math.pow(1.001, dt * 60);