e
This commit is contained in:
parent
f657b6a4a4
commit
d163ceb291
76 changed files with 1385 additions and 524 deletions
|
|
@ -60,7 +60,7 @@
|
|||
const radius = Math.max(18, Number(tarinai.radius || 22) || 22);
|
||||
for (let i = 0; i < count; i += 1) {
|
||||
const side = i % 2 ? 1 : -1;
|
||||
worldRef.effects.push(new global.TarinaiEffect("heart",
|
||||
worldRef.queueEffect?.("heart",
|
||||
tarinai.x + side * global.rand(radius * 0.06, radius * 0.82),
|
||||
tarinai.y - global.rand(radius * 0.38, radius * 1.72), {
|
||||
vx: side * global.rand(9, 30) + global.rand(-9, 9),
|
||||
|
|
@ -68,11 +68,11 @@
|
|||
size: global.rand(9, 17),
|
||||
life: global.rand(0.82, 1.36),
|
||||
color: "rgba(240,91,135,0.94)",
|
||||
}));
|
||||
});
|
||||
}
|
||||
worldRef.effects.push(new global.TarinaiEffect("ring", tarinai.x, tarinai.y, {
|
||||
worldRef.queueEffect?.("ring", tarinai.x, tarinai.y, {
|
||||
size: Math.max(24, radius * 1.35), life: 0.28, color: "rgba(240,91,135,0.42)",
|
||||
}));
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -138,10 +138,7 @@
|
|||
global.TarinaiAchievements?.recordDirectCare?.({ world: worldRef, tarinai, item, type, beneficialRecovery, source: options.source || "direct" });
|
||||
}
|
||||
|
||||
const sourceLabel = options.source === "pinch" ? "\u624b\u6e21\u3057\u3067" : "\u76f4\u63a5";
|
||||
worldRef.log?.(`${tarinai.name}\u306b${label}\u3092${sourceLabel}\u4e0e\u3048\u305f\u3002`, "food", {
|
||||
participants: [tarinai], eventType: "direct_feed", sound: false,
|
||||
});
|
||||
// Direct feeding is a player operation and is intentionally not logged.
|
||||
|
||||
const removed = options.removeItem !== false ? removeGivenWorldItem(worldRef, item, label) : false;
|
||||
if (!removed && (worldRef.items || []).includes(item)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue