hm
This commit is contained in:
parent
129c07183a
commit
5ed977788c
49 changed files with 1084 additions and 392 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue