removed unused processesseessess
This commit is contained in:
parent
348f355eb2
commit
4fdc567e08
158 changed files with 1317 additions and 3351 deletions
|
|
@ -8,7 +8,7 @@
|
|||
if (!tarinai || !tarinai.world) return null;
|
||||
const foodNeed = Number(tarinai.needRaw?.food ?? tarinai.needs?.food ?? 0) || 0;
|
||||
const healthNeed = Number(tarinai.needRaw?.health ?? tarinai.needs?.health ?? 0) || 0;
|
||||
const currentNeed = typeof getTarinaiBehaviorNeed === "function" ? getTarinaiBehaviorNeed(tarinai) : tarinai.behavior?.need;
|
||||
const currentNeed = getTarinaiBehaviorNeed(tarinai);
|
||||
const foodActionActive = currentNeed === "food" || ["seek_food", "eat", "seek_water"].includes(tarinai.state);
|
||||
const healthActionActive = currentNeed === "health" || tarinai.state === "seek_food";
|
||||
const mealReady = (tarinai.mealCooldownUntil || 0) <= (tarinai.world?.time || 0) || tarinai.hunger > 92 || foodNeed > 84;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue