Archived
Updated Swagnuts & Some Mod Configs
This commit is contained in:
Binary file not shown.
@@ -5,7 +5,7 @@ version=d2025.1.12.0
|
||||
newestVersion=
|
||||
category="1,"
|
||||
nexusFileStatus=1
|
||||
installationFile=SWAG-Donuts-v4.0.0RC2-SPT310x.7z
|
||||
installationFile=SWAG-Donuts-v4.0.0RC3-SPT310x.7z
|
||||
repository=Nexus
|
||||
ignoredVersion=
|
||||
comments=
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"factory": 0,
|
||||
"factory_night": 2,
|
||||
"groundzero": 0,
|
||||
"groundzero_high": 44,
|
||||
"groundzero_high": 4,
|
||||
"interchange": 0,
|
||||
"laboratory": 0,
|
||||
"lighthouse": 0,
|
||||
|
||||
@@ -230,7 +230,7 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
|
||||
!config?.UseDefaultSpawns?.TriggeredWaves
|
||||
)
|
||||
{
|
||||
SWAG.disableSpawnSystems();
|
||||
SWAG.disableSpawnSystems(container);
|
||||
}
|
||||
|
||||
// disable more vanilla spawn stuff
|
||||
@@ -240,10 +240,6 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
|
||||
locationConfig.addCustomBotWavesToMaps = false;
|
||||
locationConfig.enableBotTypeLimits = false;
|
||||
|
||||
logger.info(
|
||||
"SWAG: Vanilla spawn systems disabled"
|
||||
);
|
||||
|
||||
return output;
|
||||
}
|
||||
}],
|
||||
@@ -511,8 +507,6 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
|
||||
{
|
||||
SWAG.spawnCustom(custom, globalmap);
|
||||
});
|
||||
|
||||
logger.warning(`SWAG: Configured boss spawns for map ${globalmap}`);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -753,20 +747,20 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
|
||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
}
|
||||
|
||||
static disableSpawnSystems(): void
|
||||
static disableSpawnSystems(container: DependencyContainer): void
|
||||
{
|
||||
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;
|
||||
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;
|
||||
}
|
||||
logger.info("SWAG: Spawn Systems Set")
|
||||
}
|
||||
|
||||
static clearDefaultSpawns(): void
|
||||
|
||||
Reference in New Issue
Block a user