mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 01:50:44 -05:00
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: SPT-AKI/Server#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];
|
||||
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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user