This commit is contained in:
33333-33333 2026-07-18 22:15:26 +09:00
commit d163ceb291
76 changed files with 1385 additions and 524 deletions

View file

@ -25,7 +25,8 @@
const minute = dt / 60;
t.age += dt;
t.reproductionTimer -= dt;
// reproductionTimer is advanced in the outer creature pass so low-frequency
// AI updates do not stretch the cooldown as population grows.
t.eatTimer = Math.max(0, t.eatTimer - dt);
if (t.state === "eat" && t.eatTimer <= 0.02) {
t.setActionState?.("idle", { target: null, reason: "\u98df\u3079\u7d42\u3048\u305f", sleeping: false, clearTarget: true });
@ -85,7 +86,6 @@
if (!t.dead) t._achievementLaxativeActiveThisFrame = false;
return { done: true };
}
global.TarinaiCursorCareSystem.updateOne(t, dt);
const wasFighting = t.fightTimer > 0.04;
const endingFightTargetIds = wasFighting ? [...new Set([t.fightTargetId, ...(Array.isArray(t.fightTargetIds) ? t.fightTargetIds : [])].filter(Boolean))] : [];
t.fightTimer = Math.max(0, t.fightTimer - dt);