removed unused processesseessess

This commit is contained in:
33333-33333 2026-06-29 16:21:58 +09:00
commit 4fdc567e08
158 changed files with 1317 additions and 3351 deletions

View file

@ -7,21 +7,15 @@
// Tarinai.prototype.update body without changing behavior.
(function (global) {
function detRange(worldRef, salt, min, max, ...parts) {
const fn = global.deterministicRange;
if (typeof fn === "function") return fn(worldRef, salt, min, max, ...parts);
const a = Number(min) || 0;
const b = Number(max) || 0;
return (a + b) * 0.5;
return global.deterministicRange(worldRef, salt, min, max, ...parts);
}
function detSigned(worldRef, salt, ...parts) {
const fn = global.deterministicSigned;
return typeof fn === "function" ? fn(worldRef, salt, ...parts) : 1;
return global.deterministicSigned(worldRef, salt, ...parts);
}
function detChance(worldRef, salt, chance, ...parts) {
const fn = global.deterministicChance;
return typeof fn === "function" ? fn(worldRef, salt, chance, ...parts) : (Number(chance) || 0) >= 1;
return global.deterministicChance(worldRef, salt, chance, ...parts);
}
function update(t, dt, context = {}) {
@ -32,7 +26,6 @@
const minute = dt / 60;
t.age += dt;
t.reproductionTimer -= dt;
t.blink += dt;
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 });
@ -76,18 +69,7 @@
t.checkLife(dt);
return { done: true };
}
if (global.TarinaiCursorCareSystem?.updateOne) global.TarinaiCursorCareSystem.updateOne(t, dt);
else t.applyCursorContactCare?.(dt);
const colonyMoodId = t.world?.colonyMood?.id || "relaxed";
if (colonyMoodId === "weaklings" && !t.isZunchiSlave) applyNeedRelief(t, { safety: -dt * 2, fulfill: -dt * 1 });
if (colonyMoodId === "zunda_party" || colonyMoodId === "ball_party") applyNeedRelief(t, { fulfill: -dt * 3 });
if (colonyMoodId === "ant_overrun" && t.state !== "panic") {
const antSeen = (t.world?.nearbyAnts?.(t.x, t.y, 110, true) || []).some(a => a && !a.dead);
if (antSeen) {
if (t.enterPanic) t.enterPanic({ target: null, reason: "\u30a2\u30ea\u3060", fear: 1.1, wake: true, cause: "colony_ant_overrun" });
else { t.setActionState?.("panic", { target: null, reason: "\u30a2\u30ea\u3060", wake: true }); t.fearTimer = Math.max(t.fearTimer || 0, 1.1 * t.personalityProfile().fear); }
}
}
global.TarinaiCursorCareSystem.updateOne(t, dt);
const wasFighting = t.fightTimer > 0.04;
t.fightTimer = Math.max(0, t.fightTimer - dt);
t.fightCooldown = Math.max(0, t.fightCooldown - dt);
@ -106,7 +88,6 @@
t.fightTargetIds = [];
t.fightTargetId = null;
}
t.stretchTimer = Math.max(0, t.stretchTimer - dt);
t.grassEatTimer = Math.max(0, t.grassEatTimer - dt);
t.hurtTimer = Math.max(0, t.hurtTimer - dt);
t.fallTimer = Math.max(0, t.fallTimer - dt);