Changes after feedback from Drakia

This commit is contained in:
Dev 2023-11-02 21:16:31 +00:00
parent 2511b8bba2
commit a5a0bf82d7
5 changed files with 9 additions and 5 deletions

View File

@ -43,6 +43,7 @@
"sptBear": 30
},
"bosses": ["bossbully", "bossgluhar", "bosskilla", "bosskojaniy", "bosssanitar", "bosstagilla", "bossknight", "bossZryachiy", "bossBoar", "bossBoarSniper"],
"botsToNotAddPMCsAsEnemiesTo": ["gifter", "peacefullzryachiyevent"],
"durability": {
"default": {
"armor": {

View File

@ -610,7 +610,8 @@
"TriggerName": "botEvent"
}
]
}
},
"christmas": {}
},
"gifterSettings": [{
"map": "bigmap",

View File

@ -116,8 +116,8 @@ export class BotController
break;
default:
difficultySettings = this.botDifficultyHelper.getBotDifficultySettings(type, difficulty);
// Don't add pmcs to event enemies
if (!["gifter", "peacefullzryachiyevent"].includes(type.toLowerCase()))
// Don't add pmcs to event enemies (e.g. gifter/peacefullzryachiyevent)
if (!this.botConfig.botsToNotAddPMCsAsEnemiesTo.includes(type.toLowerCase()))
{
this.botHelper.addBotToEnemyList(difficultySettings, [this.pmcConfig.bearType, this.pmcConfig.usecType], lowercasedBotType);
}
@ -153,7 +153,7 @@ export class BotController
};
// Event bots need special actions to occur, set data up for them
const isEventBot = condition.Role.includes("Event");
const isEventBot = condition.Role.toLowerCase().includes("event");
if (isEventBot)
{
// Add eventRole data + reassign role property to be base type

View File

@ -8,6 +8,8 @@ export interface IBotConfig extends IBaseConfig
kind: "aki-bot"
/** How many variants of each bot should be generated on raid start */
presetBatch: PresetBatch
/** Bot roles that should not have PMC types (sptBear/sptUsec) added as enemies to */
botsToNotAddPMCsAsEnemiesTo: string[]
/** What bot types should be classified as bosses */
bosses: string[]
/** Control weapon/armor durability min/max values for each bot type */

View File

@ -350,7 +350,7 @@ export class SeasonalEventService
if (!mapBosses.find(x => x.BossName === boss.BossName))
{
this.databaseServer.getTables().locations.bigmap.base.BossLocationSpawn.push(...bossesToAdd);
this.databaseServer.getTables().locations[mapKey].base.BossLocationSpawn.push(...bossesToAdd);
}
}
}