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 "sptBear": 30
}, },
"bosses": ["bossbully", "bossgluhar", "bosskilla", "bosskojaniy", "bosssanitar", "bosstagilla", "bossknight", "bossZryachiy", "bossBoar", "bossBoarSniper"], "bosses": ["bossbully", "bossgluhar", "bosskilla", "bosskojaniy", "bosssanitar", "bosstagilla", "bossknight", "bossZryachiy", "bossBoar", "bossBoarSniper"],
"botsToNotAddPMCsAsEnemiesTo": ["gifter", "peacefullzryachiyevent"],
"durability": { "durability": {
"default": { "default": {
"armor": { "armor": {

View File

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

View File

@ -116,8 +116,8 @@ export class BotController
break; break;
default: default:
difficultySettings = this.botDifficultyHelper.getBotDifficultySettings(type, difficulty); difficultySettings = this.botDifficultyHelper.getBotDifficultySettings(type, difficulty);
// Don't add pmcs to event enemies // Don't add pmcs to event enemies (e.g. gifter/peacefullzryachiyevent)
if (!["gifter", "peacefullzryachiyevent"].includes(type.toLowerCase())) if (!this.botConfig.botsToNotAddPMCsAsEnemiesTo.includes(type.toLowerCase()))
{ {
this.botHelper.addBotToEnemyList(difficultySettings, [this.pmcConfig.bearType, this.pmcConfig.usecType], lowercasedBotType); 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 // 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) if (isEventBot)
{ {
// Add eventRole data + reassign role property to be base type // Add eventRole data + reassign role property to be base type

View File

@ -8,6 +8,8 @@ export interface IBotConfig extends IBaseConfig
kind: "aki-bot" kind: "aki-bot"
/** How many variants of each bot should be generated on raid start */ /** How many variants of each bot should be generated on raid start */
presetBatch: PresetBatch 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 */ /** What bot types should be classified as bosses */
bosses: string[] bosses: string[]
/** Control weapon/armor durability min/max values for each bot type */ /** 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)) 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);
} }
} }
} }