This commit is contained in:
33333-33333 2026-07-05 18:01:36 +09:00
commit 8f9f5b5100
108 changed files with 2139 additions and 1500 deletions

View file

@ -100,7 +100,6 @@ class AntActor {
this.burnWanderAngle = rand(0, Math.PI * 2);
this.hpBarTimer = Math.max(this.hpBarTimer || 0, 1.0);
this.world?.effects?.push(new Effect("ring", this.x, this.y, { size: Math.max(10, this.r * 2.8), life: 0.18, color: "rgba(255,110,36,0.56)" }));
this.world?.emit?.("fire:ignite-ant", { ant: this, source });
return true;
}
@ -297,7 +296,6 @@ class AntActor {
target.fearTimer = Math.max(target.fearTimer || 0, 0.55);
target.thought = "\u30a2\u30ea\u306b\u904b\u3070\u308c\u3066\u3044\u308b";
target.recordChangeCause?.("\u30a2\u30ea\u306b\u904b\u3070\u308c\u305f", "\u72b6\u614b");
this.world?.emit?.("ant:grabbed", { ant: this, target });
audio.antDrag?.();
this.world.drawListDirty = true;
return;
@ -361,7 +359,6 @@ class AntActor {
target.antDraggedBy = this.id;
if (leadHauler && (this.world?.time || 0) - (this.lastCarryEventAt || -999) > 0.75) {
this.lastCarryEventAt = this.world?.time || 0;
this.world?.emit?.("ant:carried", { ant: this, target, lead: true, haulers });
}
target.target = null;
if (targetWasSleeping) {
@ -415,7 +412,6 @@ class AntActor {
if (this.dead) return;
this.dead = true;
audio.antDie?.();
this.world?.emit?.("ant:died", { ant: this, home, reason: "hp" });
const corpse = new Item("ant_corpse", this.x, this.y);
corpse.amount = 24;
this.world.addItem?.(corpse, "ant-corpse") || this.world.items.push(corpse);
@ -445,7 +441,6 @@ class AntActor {
if (!force && this.world.placementBlocked?.(base)) return null;
audio.antNest?.();
this.world.addItem?.(base, "ant-nest-built") || this.world.items.push(base);
this.world.emit?.("ant:nest-built", { nest: base, queen: this });
this.world.ensureSpatial?.("ant-nest-built");
this.world.drawListDirty = true;
this.world.log("\u5973\u738b\u30a2\u30ea\u304c\u65b0\u3057\u3044\u30a2\u30ea\u306e\u5de3\u3092\u4f5c\u3063\u305f\u3002", "event");