Archived
Disabling SWAG/DONUTS For Time Being
Arys has postponed providing support for Fika for now until it is more finalized for SPT specifically. Deleted backups for mods as well.
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
"factory": 0,
|
||||
"factory_night": 2,
|
||||
"groundzero": 0,
|
||||
"groundzero_high": 4,
|
||||
"groundzero_high": 44,
|
||||
"interchange": 0,
|
||||
"laboratory": 0,
|
||||
"lighthouse": 0,
|
||||
@@ -83,16 +83,16 @@
|
||||
}
|
||||
},
|
||||
"MaxBotCap": {
|
||||
"factory": 20,
|
||||
"factory": 16,
|
||||
"customs": 24,
|
||||
"woods": 28,
|
||||
"shoreline": 28,
|
||||
"woods": 26,
|
||||
"shoreline": 24,
|
||||
"lighthouse": 26,
|
||||
"reserve": 28,
|
||||
"interchange": 26,
|
||||
"laboratory": 20,
|
||||
"streets": 22,
|
||||
"groundzero": 24,
|
||||
"reserve": 24,
|
||||
"interchange": 24,
|
||||
"laboratory": 18,
|
||||
"streets": 26,
|
||||
"groundzero": 22,
|
||||
"groundzero_high": 24
|
||||
},
|
||||
"NightMaxBotCap": {
|
||||
|
||||
@@ -230,7 +230,7 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
|
||||
!config?.UseDefaultSpawns?.TriggeredWaves
|
||||
)
|
||||
{
|
||||
SWAG.disableSpawnSystems(container);
|
||||
SWAG.disableSpawnSystems();
|
||||
}
|
||||
|
||||
// disable more vanilla spawn stuff
|
||||
@@ -240,6 +240,10 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
|
||||
locationConfig.addCustomBotWavesToMaps = false;
|
||||
locationConfig.enableBotTypeLimits = false;
|
||||
|
||||
logger.info(
|
||||
"SWAG: Vanilla spawn systems disabled"
|
||||
);
|
||||
|
||||
return output;
|
||||
}
|
||||
}],
|
||||
@@ -507,6 +511,8 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
|
||||
{
|
||||
SWAG.spawnCustom(custom, globalmap);
|
||||
});
|
||||
|
||||
logger.warning(`SWAG: Configured boss spawns for map ${globalmap}`);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -747,20 +753,20 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
|
||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
}
|
||||
|
||||
static disableSpawnSystems(container: DependencyContainer): void
|
||||
static disableSpawnSystems(): void
|
||||
{
|
||||
const DB = container.resolve("DatabaseService").getTables();
|
||||
const locations = Object.keys(DB.locations);
|
||||
for (const loc of locations) {
|
||||
const base = DB.locations[loc].base;
|
||||
if (!base) continue;
|
||||
// Set spawn systems
|
||||
base.NewSpawn = false;
|
||||
base.OfflineNewSpawn = false;
|
||||
base.OldSpawn = true;
|
||||
base.OfflineOldSpawn = true;
|
||||
let map: keyof ILocations;
|
||||
for (map in locations)
|
||||
{
|
||||
if (map === "base" || map === "hideout")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// locations[map].base.OfflineNewSpawn = false;
|
||||
// locations[map].base.OfflineOldSpawn = true;
|
||||
locations[map].base.NewSpawn = false;
|
||||
locations[map].base.OldSpawn = true;
|
||||
}
|
||||
logger.info("SWAG: Spawn Systems Set")
|
||||
}
|
||||
|
||||
static clearDefaultSpawns(): void
|
||||
|
||||
Reference in New Issue
Block a user