mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Merge with develop
This commit is contained in:
parent
8af64c9e71
commit
1e12bb27cc
1 changed files with 8 additions and 4 deletions
|
@ -1223,25 +1223,29 @@ void CPlayerService::initConfigFileVars()
|
|||
MaxNbGuilds = 1000;
|
||||
|
||||
CConfigFile::CVar *varMaxNbObjects = ConfigFile.getVarPtr("NbObjectsLimit");
|
||||
if ( varMaxNbPlayers )
|
||||
MaxNbObjects= varMaxNbPlayers->asInt();
|
||||
if ( varMaxNbObjects )
|
||||
MaxNbObjects = varMaxNbObjects->asInt();
|
||||
else
|
||||
MaxNbObjects = 1000;
|
||||
|
||||
CConfigFile::CVar *varMaxNbNpcSpawnedByEGS = ConfigFile.getVarPtr("NbNpcSpawnedByEGSLimit");
|
||||
if ( varMaxNbPlayers )
|
||||
MaxNbNpcSpawnedByEGS = varMaxNbPlayers->asInt();
|
||||
if ( varMaxNbNpcSpawnedByEGS )
|
||||
MaxNbNpcSpawnedByEGS = varMaxNbNpcSpawnedByEGS->asInt();
|
||||
else
|
||||
MaxNbNpcSpawnedByEGS = 50;
|
||||
|
||||
CConfigFile::CVar *varMaxNbForageSources = ConfigFile.getVarPtr("NbForageSourcesLimit");
|
||||
if ( varMaxNbForageSources )
|
||||
MaxNbForageSources = varMaxNbForageSources->asInt();
|
||||
else
|
||||
MaxNbForageSources = 2000;
|
||||
|
||||
CConfigFile::CVar *varMaxNbToxicClouds = ConfigFile.getVarPtr("NbToxicCloudsLimit");
|
||||
if ( varMaxNbToxicClouds )
|
||||
MaxNbToxicClouds = varMaxNbToxicClouds->asInt();
|
||||
else
|
||||
MaxNbToxicClouds = 1000;
|
||||
|
||||
nlinfo( "NbPlayersLimit=%u NbObjectsLimit=%u NbNpcSpawnedByEGSLimit=%u NbForageSourcesLimit=%u NbToxicCloudsLimit=%u NbGuildLimit=%u", MaxNbPlayers, MaxNbObjects, MaxNbNpcSpawnedByEGS, MaxNbForageSources, MaxNbToxicClouds, MaxNbGuilds );
|
||||
|
||||
CConfigFile::CVar *varExportDepositContents = ConfigFile.getVarPtr("ExportDepositContents");
|
||||
|
|
Loading…
Reference in a new issue