Make use of SideType.SAVAGE
enum
This commit is contained in:
parent
8f8a0c1f05
commit
019db50cf6
@ -13,6 +13,7 @@ import { IBotCore } from "@spt/models/eft/common/tables/IBotCore";
|
||||
import { Difficulty } from "@spt/models/eft/common/tables/IBotType";
|
||||
import { IGetRaidConfigurationRequestData } from "@spt/models/eft/match/IGetRaidConfigurationRequestData";
|
||||
import { ConfigTypes } from "@spt/models/enums/ConfigTypes";
|
||||
import { SideType } from "@spt/models/enums/SideType";
|
||||
import { WildSpawnTypeNumber } from "@spt/models/enums/WildSpawnTypeNumber";
|
||||
import { BotGenerationDetails } from "@spt/models/spt/bots/BotGenerationDetails";
|
||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||
@ -250,7 +251,7 @@ export class BotController {
|
||||
): BotGenerationDetails {
|
||||
return {
|
||||
isPmc: generateAsPmc,
|
||||
side: "Savage",
|
||||
side: SideType.SAVAGE,
|
||||
role: condition.Role,
|
||||
playerLevel: this.getPlayerLevelFromProfile(pmcProfile),
|
||||
playerName: pmcProfile.Info.Nickname,
|
||||
|
@ -20,6 +20,7 @@ import { ConfigTypes } from "@spt/models/enums/ConfigTypes";
|
||||
import { GameEditions } from "@spt/models/enums/GameEditions";
|
||||
import { ItemTpl } from "@spt/models/enums/ItemTpl";
|
||||
import { MemberCategory } from "@spt/models/enums/MemberCategory";
|
||||
import { SideType } from "@spt/models/enums/SideType";
|
||||
import { BotGenerationDetails } from "@spt/models/spt/bots/BotGenerationDetails";
|
||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||
import { IPmcConfig } from "@spt/models/spt/config/IPmcConfig";
|
||||
@ -75,11 +76,11 @@ export class BotGenerator {
|
||||
let bot = this.getCloneOfBotBase();
|
||||
bot.Info.Settings.BotDifficulty = difficulty;
|
||||
bot.Info.Settings.Role = role;
|
||||
bot.Info.Side = "Savage";
|
||||
bot.Info.Side = SideType.SAVAGE;
|
||||
|
||||
const botGenDetails: BotGenerationDetails = {
|
||||
isPmc: false,
|
||||
side: "Savage",
|
||||
side: SideType.SAVAGE,
|
||||
role: role,
|
||||
botRelativeLevelDeltaMax: 0,
|
||||
botRelativeLevelDeltaMin: 0,
|
||||
@ -196,7 +197,7 @@ export class BotGenerator {
|
||||
);
|
||||
bot.Info.Settings.StandingForKill = botJsonTemplate.experience.standingForKill;
|
||||
bot.Info.Voice = this.weightedRandomHelper.getWeightedValue<string>(botJsonTemplate.appearance.voice);
|
||||
bot.Health = this.generateHealth(botJsonTemplate.health, bot.Info.Side === "Savage");
|
||||
bot.Health = this.generateHealth(botJsonTemplate.health, bot.Info.Side === SideType.SAVAGE);
|
||||
bot.Skills = this.generateSkills(<any>botJsonTemplate.skills); // TODO: fix bad type, bot jsons store skills in dict, output needs to be array
|
||||
|
||||
if (botGenerationDetails.isPmc) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user