removed unused processesseessess
This commit is contained in:
parent
348f355eb2
commit
4fdc567e08
158 changed files with 1317 additions and 3351 deletions
|
|
@ -11,7 +11,7 @@ const d = it?.type === "duplicator" ? foodInteractionDistance(tarinai, it) : dis
|
|||
const contactReach = foodInteractionReach(tarinai, it, "food") + (it === tarinai.target && foodActionActive ? (it?.type === "duplicator" ? 18 : 4) : 0);
|
||||
if (d > contactReach) return false;
|
||||
const foodType = it.type === "duplicator" ? (it.storedFoodType || "") : it.type;
|
||||
const duplicatorConsumable = it.type === "duplicator" && foodType && (foodType === "sweet" ? canSweetBite : (canBite || foodActionActive)) && !(typeof isParamEffectItemType === "function" && isParamEffectItemType(foodType)) && foodType !== "sleep_drug" && foodType !== "love_mochi" && foodType !== "fight_mochi";
|
||||
const duplicatorConsumable = it.type === "duplicator" && foodType && (foodType === "sweet" ? canSweetBite : (canBite || foodActionActive)) && !(isParamEffectItemType(foodType)) && foodType !== "sleep_drug" && foodType !== "love_mochi" && foodType !== "fight_mochi";
|
||||
|
||||
if (((foodType === "sweet" && canSweetBite) || (foodType === "food" && (canBite || foodActionActive)) || duplicatorConsumable) && tarinai.foodItemHasServingLeft(it)) {
|
||||
const eating = tarinai.consumeFoodServing(it);
|
||||
|
|
@ -51,7 +51,7 @@ if (((foodType === "sweet" && canSweetBite) || (foodType === "food" && (canBite
|
|||
}
|
||||
}
|
||||
|
||||
if (canSweetBite && (foodType === "love_mochi" || foodType === "fight_mochi" || foodType === "sleep_drug" || (typeof isParamEffectItemType === "function" && isParamEffectItemType(foodType))) && tarinai.foodItemHasServingLeft(it)) {
|
||||
if (canSweetBite && (foodType === "love_mochi" || foodType === "fight_mochi" || foodType === "sleep_drug" || (isParamEffectItemType(foodType))) && tarinai.foodItemHasServingLeft(it)) {
|
||||
const eating = tarinai.consumeFoodServing(it);
|
||||
if (eating <= 0) return false;
|
||||
const eatLabel = it.type === "duplicator" ? (it.storedFoodLabel || toolLabel(foodType || it.type)) : toolLabel(it.type);
|
||||
|
|
@ -179,16 +179,8 @@ if (it.type === "zunchi") {
|
|||
return false;
|
||||
}
|
||||
|
||||
function updateOne(tarinai, ctx, dt = 0) {
|
||||
if (!tarinai || tarinai.dead || !ctx) return false;
|
||||
for (const it of ctx.foodCandidates || []) {
|
||||
if (updateCandidate(tarinai, ctx, it, dt)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
global.TarinaiFoodInteractionSystem = Object.freeze({
|
||||
updateCandidate,
|
||||
updateOne,
|
||||
});
|
||||
})(typeof window !== "undefined" ? window : globalThis);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue