qqq
This commit is contained in:
parent
acf93ec6df
commit
ee22e1a929
49 changed files with 1380 additions and 338 deletions
|
|
@ -71,7 +71,8 @@ function createSleepInBedActionSpec() {
|
|||
if (dist(t, bed) > (t.radius || 20) + 18) return moveToOrUse(t, bed, "seek_bed", this.label);
|
||||
const isEasyBed = bed.type === "grass_bed";
|
||||
bed.use?.(t, world, isEasyBed ? { purpose: "sleep" } : undefined);
|
||||
t.startSleeping?.(bed, bed.type === "nest_box" ? "\u5de3\u7bb1\u306e\u4e2d\u3067\u5bdd\u3066\u3044\u308b" : (isEasyBed ? "\u304b\u3093\u305f\u3093\u30d9\u30c3\u30c9\u3067\u5bdd\u3066\u3044\u308b" : "\u30d9\u30c3\u30c9\u3067\u5bdd\u3066\u3044\u308b"));
|
||||
const sleepText = bed.type === "pipe" ? "\u571f\u7ba1\u306e\u4e2d\u3067\u5bdd\u3066\u3044\u308b" : (bed.type === "nest_box" ? "\u5de3\u7bb1\u306e\u4e2d\u3067\u5bdd\u3066\u3044\u308b" : (isEasyBed ? "\u304b\u3093\u305f\u3093\u30d9\u30c3\u30c9\u3067\u5bdd\u3066\u3044\u308b" : "\u30d9\u30c3\u30c9\u3067\u5bdd\u3066\u3044\u308b"));
|
||||
t.startSleeping?.(bed, sleepText);
|
||||
return true;
|
||||
},
|
||||
tick(t) {
|
||||
|
|
@ -527,7 +528,7 @@ const TARINAI_ACTION_DEFINITIONS = [
|
|||
label: "\u904a\u3093\u3067\u3044\u308b",
|
||||
phrase: "\u904a\u3093\u3060",
|
||||
weight: 24,
|
||||
selectTarget(t, world) { return world.nearest?.(t, ["ball"], 520) || null; },
|
||||
selectTarget(t, world) { return world.nearest?.(t, ["ball", "balloon"], 520) || null; },
|
||||
canStart(t, world, ctx = {}) { return !!(ctx.target ?? this.selectTarget(t, world, ctx)); },
|
||||
start: startMoveToTarget("play_ball", "\u904a\u3093\u3067\u3044\u308b"),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue