Fix: Workaround fixing marksmans not spawning on maps in function. fixBrokenOfflineMapWaves (!84)

Fix: Workaround fixing marksmans not spawning on maps in function fixBrokenOfflineMapWaves
Co-authored-by: Kaeno <>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/84
This commit is contained in:
Kaeno 2023-03-29 19:50:02 +00:00
parent 60c70eec60
commit 33195f8efb

View File

@ -254,10 +254,9 @@ export class GameController
const location: ILocationData = this.databaseServer.getTables().locations[locationKey];
for (const wave of location.base.waves)
{
// Ignore marksman waves as they're a whole other problem
if (wave.slots_min === wave.slots_max && wave.WildSpawnType !== "marksman")
if ((wave.slots_max - wave.slots_min === 0))
{
this.logger.debug(`Fixed empty map: ${locationKey} wave: ${wave.number} of type: ${wave.WildSpawnType} in zone: ${wave.SpawnPoints}`);
this.logger.debug(`Fixed ${wave.WildSpawnType} Spawn: ${locationKey} wave: ${wave.number} of type: ${wave.WildSpawnType} in zone: ${wave.SpawnPoints} with Max Slots of ${wave.slots_max}`);
wave.slots_max++;
}
}