rr
This commit is contained in:
parent
2636d580a8
commit
d14550dad6
78 changed files with 2827 additions and 563 deletions
|
|
@ -58,12 +58,16 @@ if (canSweetBite && (foodType === "love_mochi" || foodType === "fight_mochi" ||
|
|||
tarinai.beginEating(it, `${eatLabel}\u3092\u98df\u3079\u3066\u3044\u308b`);
|
||||
tarinai.vx *= Math.pow(0.25, dt * 60);
|
||||
tarinai.vy *= Math.pow(0.25, dt * 60);
|
||||
const hungerRelief = tarinai.foodHungerReliefFor(foodType || it.type, eating, 0.82);
|
||||
tarinai.applyFoodHungerRelief ? tarinai.applyFoodHungerRelief(hungerRelief) : (tarinai.hunger -= hungerRelief);
|
||||
tarinai.recoverHealth(eating * 0.24);
|
||||
tarinai.affection += eating * 0.04;
|
||||
const hpOnlyMedicine = foodType === "first_aid";
|
||||
if (!hpOnlyMedicine) {
|
||||
const hungerRelief = tarinai.foodHungerReliefFor(foodType || it.type, eating, 0.82);
|
||||
tarinai.applyFoodHungerRelief ? tarinai.applyFoodHungerRelief(hungerRelief) : (tarinai.hunger -= hungerRelief);
|
||||
tarinai.recoverHealth(eating * 0.24);
|
||||
tarinai.affection += eating * 0.04;
|
||||
}
|
||||
const mealColors = {
|
||||
love_mochi: "#ff7bab", fight_mochi: "#e07c43", sleep_drug: "#b89cff",
|
||||
first_aid: "#d24852", sedative: "#5c8eae",
|
||||
protein: "#f28d3d", niteropu: "#6255a8", ammo: "#d0942f", laxative: "#788c3b",
|
||||
mercury: "#6e95a8", giant_drug: "#e47b3a", dwarf_drug: "#7773c8", zunda_juice: "#61b94f",
|
||||
};
|
||||
|
|
@ -87,7 +91,7 @@ if (canSweetBite && (foodType === "love_mochi" || foodType === "fight_mochi" ||
|
|||
tarinai.world.spawnEatEffect(mouth.x, mouth.y, foodType === "love_mochi" ? "#ff7bab" : (foodType === "fight_mochi" ? "#e07c43" : (foodType === "sleep_drug" ? "#b89cff" : (tarinai.lastMealColor || "#41aa66"))));
|
||||
}
|
||||
const fromDuplicator = isDuplicatorFoodSource(it);
|
||||
tarinai.makePoop(normalPoopUnitsFor(foodType || it.type, eating));
|
||||
if (!hpOnlyMedicine) tarinai.makePoop(normalPoopUnitsFor(foodType || it.type, eating));
|
||||
if (fromDuplicator) tarinai.mealCooldownUntil = Math.max(tarinai.mealCooldownUntil || 0, tarinai.world.time + 1.2);
|
||||
if (tarinai.world.time > tarinai.nextEatSound) { audio.eat(); tarinai.nextEatSound = tarinai.world.time + 0.42; }
|
||||
if (tarinai.world.time - tarinai.lastLog > 9 && Math.random() < 0.02) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue