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:
parent
60c70eec60
commit
33195f8efb
@ -254,10 +254,9 @@ export class GameController
|
|||||||
const location: ILocationData = this.databaseServer.getTables().locations[locationKey];
|
const location: ILocationData = this.databaseServer.getTables().locations[locationKey];
|
||||||
for (const wave of location.base.waves)
|
for (const wave of location.base.waves)
|
||||||
{
|
{
|
||||||
// Ignore marksman waves as they're a whole other problem
|
if ((wave.slots_max - wave.slots_min === 0))
|
||||||
if (wave.slots_min === wave.slots_max && wave.WildSpawnType !== "marksman")
|
|
||||||
{
|
{
|
||||||
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++;
|
wave.slots_max++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user