This commit is contained in:
33333-33333 2026-07-15 16:27:56 +09:00
commit fc7c94bd69
26 changed files with 1167 additions and 271 deletions

View file

@ -767,6 +767,7 @@ function inheritedChampionPersonality(seed = "", parents = [], opts = {}) {
finishBirthRitual(a, b) {
if (!a || !b || a.dead || b.dead) return null;
const loveMochiInfluenced = [a, b].some(tarinai => (Number(tarinai?.loveMochiTimer || 0) > 0.04) || Boolean(tarinai?.hasLoveMochiEffect?.()));
const reproductionBlockedByDisease = a.sleepDisease || b.sleepDisease || a.fightDisease || b.fightDisease;
a.birthRitualTimer = b.birthRitualTimer = 0;
a.birthPartnerId = b.birthPartnerId = null;
@ -790,7 +791,10 @@ function inheritedChampionPersonality(seed = "", parents = [], opts = {}) {
const child = this.spawnChild(a, b, i, childCount);
if (child) { child.postBirthPeaceTimer = 18; children.push(child); }
}
if (children.length > 0) this.lastBirthAt = this.time;
if (children.length > 0) {
this.lastBirthAt = this.time;
globalThis.TarinaiAchievements?.recordLoveMochiBirth?.({ world: this, a, b, children, loveMochiInfluenced });
}
if (children.length > 1) this.log(`${a.name}\u3068${b.name}\u306e\u5b50\u304c${children.length}\u5339\u751f\u307e\u308c\u305f\u3002`, "birth", { participants: [a, b, ...children] });
return children[0] || null;
},