mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-05 08:27:06 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user