p
This commit is contained in:
parent
d14550dad6
commit
63e10af865
86 changed files with 5400 additions and 1209 deletions
|
|
@ -179,6 +179,7 @@ function inheritedChampionPersonality(seed = "", parents = [], opts = {}) {
|
|||
const presetGround = groundForResetPreset(preset);
|
||||
if (presetGround && window.TarinaiGround.exists(presetGround)) this.groundType = presetGround;
|
||||
this.nextWeatherChange = rand(CONFIG.weatherChangeMin, CONFIG.weatherChangeMax);
|
||||
global.TarinaiAchievements?.resetWorldProgress?.(this);
|
||||
|
||||
generatePresetWorld(this, field, preset, seedPopulation);
|
||||
|
||||
|
|
@ -863,6 +864,7 @@ function inheritedChampionPersonality(seed = "", parents = [], opts = {}) {
|
|||
});
|
||||
if (!child) return null;
|
||||
this.birthEventCount = Math.max(0, Number(this.birthEventCount || 0) || 0) + 1;
|
||||
globalThis.TarinaiAchievements?.recordBirth?.({ world: this, child, parents: [a, b] });
|
||||
if (zunchiSlaveChild) child.becomeZunchiSlave?.({ birth: true });
|
||||
this.maxGeneration = Math.max(this.maxGeneration, child.generation);
|
||||
a.hasPaired = true;
|
||||
|
|
@ -1133,6 +1135,7 @@ function inheritedChampionPersonality(seed = "", parents = [], opts = {}) {
|
|||
this.log(`${a.name}\u3068${b.name}\u304c\u5c0f\u3055\u306a\u55a7\u5629\u3092\u3057\u305f\u3002`, "fight", { participants: [a, b], sound: false });
|
||||
a.lastLog = b.lastLog = this.time;
|
||||
}
|
||||
global.TarinaiAchievements?.recordFightStarted?.({ world: this, a, b, initiator });
|
||||
return true;
|
||||
}
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue