This commit is contained in:
33333-33333 2026-06-27 21:50:05 +09:00
commit 5ed977788c
49 changed files with 1084 additions and 392 deletions

View file

@ -33,8 +33,8 @@ function consumeBehaviorTarget(t, world, target, role = "food", dt = 0.12) {
return true;
}
if ((role === "drink" || role === "medicine") && (target.type === "water" || target.type === "water_bowl")) {
const text = target.type === "water_bowl" ? "\u6c34\u306e\u76bf\u3067\u6c34\u3092\u98f2\u3093\u3067\u3044\u308b" : "\u6c34\u3092\u98f2\u3093\u3067\u3044\u308b";
if ((role === "drink" || role === "medicine") && target.type === "water") {
const text = "\u6c34\u3092\u98f2\u3093\u3067\u3044\u308b";
t.setActionState?.("seek_water", { target, reason: text, sleeping: false });
t.thought = text;
t.applyWaterEffect?.(0.55, target.type);