Improve random spawn (#2465)

## Description:

After the v27 playtest, some players experienced instant death on spawn.
The issue was that the human random spawn occasionally coincided with a
bot’s spawn. Previously, bot spawns didn’t account for human spawn
locations and could appear on the same tile, now they don’t.

## Please complete the following:

- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

nikolaj_mykola

---------

Co-authored-by: Evan <evanpelle@gmail.com>
This commit is contained in:
Mykola
2025-11-18 15:07:25 -08:00
committed by GitHub
co-authored by Evan
parent 90b73451a8
commit 2b2200c808
9 changed files with 71 additions and 19 deletions
+5
View File
@@ -48,6 +48,11 @@ export class SpawnExecution implements Execution {
this.mg.addExecution(new BotExecution(player));
}
}
if (player.spawnTile() === undefined) {
player.setSpawnTile(this.tile);
}
player.setHasSpawned(true);
}