This commit is contained in:
33333-33333 2026-06-25 17:43:24 +09:00
commit 16074232aa
40 changed files with 1509 additions and 732 deletions

View file

@ -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));