Changes after feedback from Drakia
This commit is contained in:
parent
2511b8bba2
commit
a5a0bf82d7
@ -43,6 +43,7 @@
|
||||
"sptBear": 30
|
||||
},
|
||||
"bosses": ["bossbully", "bossgluhar", "bosskilla", "bosskojaniy", "bosssanitar", "bosstagilla", "bossknight", "bossZryachiy", "bossBoar", "bossBoarSniper"],
|
||||
"botsToNotAddPMCsAsEnemiesTo": ["gifter", "peacefullzryachiyevent"],
|
||||
"durability": {
|
||||
"default": {
|
||||
"armor": {
|
||||
|
@ -610,7 +610,8 @@
|
||||
"TriggerName": "botEvent"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"christmas": {}
|
||||
},
|
||||
"gifterSettings": [{
|
||||
"map": "bigmap",
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user