Halloween event fixes

This commit is contained in:
Dev 2024-01-07 19:29:42 +00:00
parent 54948599c3
commit ed82e9ed2f
4 changed files with 7 additions and 4 deletions

View File

@ -42,6 +42,9 @@
"followerKolontayAssault": 10,
"followerKolontaySecurity": 10,
"shooterBTR": 10,
"peacefullZryachiyEvent": 5,
"ravangeZryachiyEvent": 5,
"sectactPriestEvent": 10,
"sptUsec": 30,
"sptBear": 30
},

View File

@ -399,7 +399,7 @@
"TriggerName": "botEvent"
}
],
"reservbase": [{
"rezervbase": [{
"BossChance": 100,
"BossDifficult": "normal",
"BossEscortAmount": "0",

View File

@ -62,7 +62,8 @@ export class BotController
if (!value)
{
this.logger.warning(`No value found for bot type ${type}, defaulting to 30`);
return value;
return 30;
}
return value;
}

View File

@ -219,10 +219,9 @@ export class SeasonalEventService
*/
public enableSeasonalEvents(sessionId: string): void
{
const globalConfig = this.databaseServer.getTables().globals.config;
if (this.currentlyActiveEvents)
{
const globalConfig = this.databaseServer.getTables().globals.config;
for (const event of this.currentlyActiveEvents)
{
this.updateGlobalEvents(sessionId, globalConfig, event);