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

@ -6,6 +6,13 @@
(function (global) {
function update(t, dt, context = {}) {
if (!t || t.dead) return { done: true };
if (t.playerHeld || t._heldByPlayer) {
t.aiTimer = 0;
t.target = null;
t.targetKey = "";
t.updateFacing?.();
return { done: false, held: true };
}
t.behaviorLockTimer = Math.max(0, (t.behaviorLockTimer || 0) - dt);
t.aiTimer += dt;
const urgentFoodNeed = Number(t.needRaw?.food ?? t.needs?.food ?? 0) || 0;