qqq
This commit is contained in:
parent
acf93ec6df
commit
ee22e1a929
49 changed files with 1380 additions and 338 deletions
|
|
@ -60,7 +60,8 @@ const d = contact.distance;
|
|||
const occ = tarinai.world.bedOccupancy(it);
|
||||
const comfort = tarinai.world.bedComfort(it);
|
||||
it.use?.(tarinai, tarinai.world, isEasyBed ? { purpose: "sleep" } : undefined);
|
||||
tarinai.startSleeping?.(it, it.type === "nest_box" ? "\u5de3\u7bb1\u306e\u4e2d\u3067\u4f11\u3093\u3067\u3044\u308b" : (isEasyBed ? "\u304b\u3093\u305f\u3093\u30d9\u30c3\u30c9\u3067\u5bdd\u3066\u3044\u308b" : "\u30d9\u30c3\u30c9\u3067\u4f11\u3093\u3067\u3044\u308b"));
|
||||
const sleepText = it.type === "pipe" ? "\u571f\u7ba1\u306e\u4e2d\u3067\u4f11\u3093\u3067\u3044\u308b" : (it.type === "nest_box" ? "\u5de3\u7bb1\u306e\u4e2d\u3067\u4f11\u3093\u3067\u3044\u308b" : (isEasyBed ? "\u304b\u3093\u305f\u3093\u30d9\u30c3\u30c9\u3067\u5bdd\u3066\u3044\u308b" : "\u30d9\u30c3\u30c9\u3067\u4f11\u3093\u3067\u3044\u308b"));
|
||||
tarinai.startSleeping?.(it, sleepText);
|
||||
if (tarinai.world.time > tarinai.nextSleepBubbleAt) {
|
||||
tarinai.nextSleepBubbleAt = tarinai.world.time + 4.5;
|
||||
tarinai.world.spawnBubble(tarinai.x, tarinai.y - tarinai.radius * 1.18, "Zzz...", "rgba(65,70,92,0.72)");
|
||||
|
|
@ -71,7 +72,7 @@ const d = contact.distance;
|
|||
}
|
||||
}
|
||||
|
||||
if (it.type === "ball") {
|
||||
if (it.type === "ball" || it.type === "balloon") {
|
||||
const touch = clamp(1 - d / (tarinai.radius + it.r + 12), 0, 1);
|
||||
if (tarinai.state === "play_ball" || tarinai.target === it || tarinai.shouldApplyPersonalityBehavior("openness", 1)) {
|
||||
tarinai.goodMode = "smile";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue