あ
This commit is contained in:
parent
8f9f5b5100
commit
f1c3af2b89
49 changed files with 989 additions and 310 deletions
|
|
@ -414,7 +414,7 @@ class AntActor {
|
|||
audio.antDie?.();
|
||||
const corpse = new Item("ant_corpse", this.x, this.y);
|
||||
corpse.amount = 24;
|
||||
this.world.addItem?.(corpse, "ant-corpse") || this.world.items.push(corpse);
|
||||
this.world.addItem?.(corpse, "ant-corpse");
|
||||
this.world.effects?.push(new Effect("zunchi_miasma", this.x, this.y - 4, { size: 10, life: 0.44, color: "rgba(82,61,42,0.28)" }));
|
||||
if (home) syncAntNestCount(this.world, home);
|
||||
this.world.ensureItemBuckets?.("ant-corpse");
|
||||
|
|
@ -439,8 +439,9 @@ class AntActor {
|
|||
base.antCount = ANT_NEST_START_COUNT;
|
||||
base.antWorkers = buildAntWorkerPool(ANT_NEST_START_COUNT);
|
||||
if (!force && this.world.placementBlocked?.(base)) return null;
|
||||
const addedNest = this.world.addItem?.(base, "ant-nest-built") || null;
|
||||
if (!addedNest) return null;
|
||||
audio.antNest?.();
|
||||
this.world.addItem?.(base, "ant-nest-built") || this.world.items.push(base);
|
||||
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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue