hhmm
This commit is contained in:
parent
434f07cc4e
commit
16074232aa
40 changed files with 1509 additions and 732 deletions
|
|
@ -47,6 +47,19 @@ function consumeBehaviorTarget(t, world, target, role = "food", dt = 0.12) {
|
|||
return true;
|
||||
}
|
||||
|
||||
if ((role === "drink" || role === "medicine") && isDuplicatorFoodSource(target) && foodType === "water") {
|
||||
const text = "複製機の水滴を飲んでいる";
|
||||
t.setActionState?.("seek_water", { target, reason: text, sleeping: false });
|
||||
t.thought = text;
|
||||
t.applyWaterEffect?.(0.55, "water");
|
||||
if ((world.time || 0) > (t.nextDrinkSound || -999)) {
|
||||
audio.play?.("sfx_drink", { category: "ops", minGap: 0.20 });
|
||||
t.nextDrinkSound = (world.time || 0) + 0.72;
|
||||
}
|
||||
applyNeedRelief(t, role === "medicine" ? { food: -2, health: -5, safety: -1 } : { food: -4, health: -1 });
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
if (target.type === "ant_corpse" && (target.amount || 0) > 0) {
|
||||
const bite = Math.min(target.amount, rand(3.2, 5.4));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue