This commit is contained in:
33333-33333 2026-06-21 22:29:00 +09:00
commit 0a6148c73f
67 changed files with 2653 additions and 1519 deletions

View file

@ -26,6 +26,7 @@
maxHp: ANT_WORKER_HP || 32,
});
this.ants.push(a);
this.emit?.("ant:spawned", { ant: a, nest });
if (typeof syncAntNestCount === "function") syncAntNestCount(this, nest);
nest.antSpawnTimer = rand(1.6, 3.8) + outside * 0.45;
this.drawListDirty = true;
@ -66,6 +67,7 @@
target.y = home.y;
audio.antNest?.();
target.die("\u30a2\u30ea\u306b\u98df\u3079\u3089\u308c\u305f");
this.emit?.("ant:carried", { nest: home, target, complete: true });
this.drawListDirty = true;
},
@ -88,8 +90,8 @@
foundingDelayUntil: (this.time || 0) + 0.35,
});
this.ants.push(queen);
this.emit?.("ant:spawned", { ant: queen, nest: home });
audio.queenAnt?.();
this.log("\u5973\u738b\u30a2\u30ea\u304c\u65b0\u3057\u3044\u5de3\u5834\u6240\u3092\u63a2\u3057\u59cb\u3081\u305f\u3002", "event");
this.drawListDirty = true;
return queen;
},