removed unused processesseessess
This commit is contained in:
parent
348f355eb2
commit
4fdc567e08
158 changed files with 1317 additions and 3351 deletions
|
|
@ -73,10 +73,10 @@ function consumeBehaviorTarget(t, world, target, role = "food", dt = 0.12) {
|
|||
return true;
|
||||
}
|
||||
|
||||
if ((foodType === "sweet" || foodType === "food" || (isDuplicatorFoodSource(target) && foodType === "grass") || (typeof isServingFoodType === "function" && isServingFoodType(foodType)) || (typeof isParamEffectItemType === "function" && isParamEffectItemType(foodType))) && t.foodItemHasServingLeft?.(target)) {
|
||||
if ((foodType === "sweet" || foodType === "food" || (isDuplicatorFoodSource(target) && foodType === "grass") || (isServingFoodType(foodType)) || (isParamEffectItemType(foodType))) && t.foodItemHasServingLeft?.(target)) {
|
||||
const eating = t.consumeFoodServing?.(target);
|
||||
if (!(eating > 0)) return false;
|
||||
const isParam = typeof isParamEffectItemType === "function" && isParamEffectItemType(foodType);
|
||||
const isParam = isParamEffectItemType(foodType);
|
||||
const isSpecial = foodType === "love_mochi" || foodType === "fight_mochi" || foodType === "sleep_drug" || isParam;
|
||||
const color = ({ sweet: "#78b957", love_mochi: "#ff7bab", fight_mochi: "#e07c43", sleep_drug: "#b89cff", protein: "#f28d3d", niteropu: "#6255a8", ammo: "#d0942f", laxative: "#788c3b", mercury: "#6e95a8", giant_drug: "#e47b3a", dwarf_drug: "#7773c8", zunda_juice: "#61b94f" })[foodType] || "#f1dfb7";
|
||||
finishBehaviorConsumption(t, target, foodType, eating, effectiveDt, `${labelFor(foodType)}\u3092\u98df\u3079\u3066\u3044\u308b`, color);
|
||||
|
|
@ -100,7 +100,7 @@ function consumeBehaviorTarget(t, world, target, role = "food", dt = 0.12) {
|
|||
}
|
||||
|
||||
if (target.type === "grass" && (target.amount || 0) > 0) {
|
||||
const bite = window.TarinaiGrass?.regress?.(target, 1) ?? 0;
|
||||
const bite = window.TarinaiGrass.regress(target, 1) ?? 0;
|
||||
if (!(bite > 0)) return false;
|
||||
target.eatenAmount = (target.eatenAmount || 0) + bite;
|
||||
world.markTerrainDirty?.("grass-eaten-stage");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue