This commit is contained in:
33333-33333 2026-07-15 14:44:29 +09:00
commit 63e10af865
86 changed files with 5400 additions and 1209 deletions

View file

@ -12,6 +12,7 @@
this.antNestUpdateAccum = 0;
const nests = this.itemsOfType?.("ant_nest") || (this.items || []).filter(it => it && !it.dead && it.type === "ant_nest");
for (const nest of nests) {
if (global.TarinaiSignalSystem?.powerOverride?.(nest) === false) continue;
if (typeof ensureAntNestWorkerPool === "function") ensureAntNestWorkerPool(nest);
if (!Number.isFinite(nest.antCount)) nest.antCount = ANT_NEST_START_COUNT || 6;
if (typeof syncAntNestCount === "function") syncAntNestCount(this, nest);
@ -31,6 +32,7 @@
maxHp: ANT_WORKER_HP || 32,
});
this.ants.push(a);
global.TarinaiAchievements?.recordAntPopulation?.(this);
if (typeof syncAntNestCount === "function") syncAntNestCount(this, nest);
nest.antSpawnTimer = rand(2.5, 5.5) + outside * 0.65;
this.drawListDirty = true;
@ -70,7 +72,8 @@
target.x = home.x;
target.y = home.y;
audio.antNest?.();
target.die("\u30a2\u30ea\u306b\u98df\u3079\u3089\u308c\u305f");
global.TarinaiAchievements?.recordDamageSource?.(target, home, { world: this, reason: "\u30a2\u30ea\u306b\u98df\u3079\u3089\u308c\u305f" });
target.die("\u30a2\u30ea\u306b\u98df\u3079\u3089\u308c\u305f", { achievementDangerKill: true });
this.drawListDirty = true;
},
@ -93,6 +96,7 @@
foundingDelayUntil: (this.time || 0) + 0.35,
});
this.ants.push(queen);
global.TarinaiAchievements?.recordAntPopulation?.(this);
audio.queenAnt?.();
this.drawListDirty = true;
return queen;