あ
This commit is contained in:
parent
8f9f5b5100
commit
f1c3af2b89
49 changed files with 989 additions and 310 deletions
|
|
@ -713,14 +713,13 @@
|
|||
this.world.drawListDirty = true;
|
||||
this.world.markItemBucketsDirty?.("tarinai-death-plushie-cleanup");
|
||||
this.world.markSpatialDirty?.("tarinai-death-plushie-cleanup");
|
||||
this.world.addItem?.(new Item("trace", this.x, this.y), "tarinai-death-trace") || this.world.items.push(new Item("trace", this.x, this.y));
|
||||
this.world.addItem?.(new Item("splat", this.x, this.y), "tarinai-death-splat") || this.world.items.push(new Item("splat", this.x, this.y));
|
||||
this.world.addItem?.(new Item("trace", this.x, this.y), "tarinai-death-trace");
|
||||
this.world.addItem?.(new Item("splat", this.x, this.y), "tarinai-death-splat");
|
||||
if (deterministicChance(this.world, "death-grass-spawn", 0.55, this, finalReason)) {
|
||||
const spot = this.world.findGrassPlantingSpot(this.x, this.y, { allowOriginal: false, minRadius: 26, maxRadius: 76 });
|
||||
if (spot) {
|
||||
const deathGrass = new Item("grass", spot.x, spot.y);
|
||||
if (this.world.addItem) this.world.addItem(deathGrass, "tarinai-death-grass");
|
||||
else this.world.items.push(deathGrass);
|
||||
this.world.addItem?.(deathGrass, "tarinai-death-grass");
|
||||
}
|
||||
}
|
||||
this.world.markDead(this, finalReason);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue