1.6
This commit is contained in:
parent
ee22e1a929
commit
88f618cadf
55 changed files with 1299 additions and 447 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue