a
This commit is contained in:
parent
d163ceb291
commit
f6d7412744
94 changed files with 3836 additions and 1226 deletions
|
|
@ -26,6 +26,7 @@ function finishBehaviorConsumption(t, item, foodType, eating, dt, label, color =
|
|||
function consumeBehaviorTarget(t, world, target, role = "food", dt = 0.12) {
|
||||
if (!t || !world || !target || target.dead) return false;
|
||||
const foodType = effectiveFoodTypeForItem(target);
|
||||
if (t.isZunchiSlave && foodType === "sweet") return false;
|
||||
const labelFor = type => typeof toolLabel === "function" ? toolLabel(type || target.type) : "\u98df\u3079\u7269";
|
||||
const effectiveDt = Math.max(0.10, Number(dt) || 0.12);
|
||||
if (isDuplicatorFoodSource(target) && (t.eatCooldown || 0) > 0.04) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue