Make use of SideType.SAVAGE
enum
This commit is contained in:
parent
42451c69a4
commit
0cb179f8e1
@ -13,6 +13,7 @@ import { IBotCore } from "@spt/models/eft/common/tables/IBotCore";
|
|||||||
import { Difficulty } from "@spt/models/eft/common/tables/IBotType";
|
import { Difficulty } from "@spt/models/eft/common/tables/IBotType";
|
||||||
import { IGetRaidConfigurationRequestData } from "@spt/models/eft/match/IGetRaidConfigurationRequestData";
|
import { IGetRaidConfigurationRequestData } from "@spt/models/eft/match/IGetRaidConfigurationRequestData";
|
||||||
import { ConfigTypes } from "@spt/models/enums/ConfigTypes";
|
import { ConfigTypes } from "@spt/models/enums/ConfigTypes";
|
||||||
|
import { SideType } from "@spt/models/enums/SideType";
|
||||||
import { WildSpawnTypeNumber } from "@spt/models/enums/WildSpawnTypeNumber";
|
import { WildSpawnTypeNumber } from "@spt/models/enums/WildSpawnTypeNumber";
|
||||||
import { BotGenerationDetails } from "@spt/models/spt/bots/BotGenerationDetails";
|
import { BotGenerationDetails } from "@spt/models/spt/bots/BotGenerationDetails";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
@ -245,7 +246,7 @@ export class BotController {
|
|||||||
): BotGenerationDetails {
|
): BotGenerationDetails {
|
||||||
return {
|
return {
|
||||||
isPmc: generateAsPmc,
|
isPmc: generateAsPmc,
|
||||||
side: "Savage",
|
side: SideType.SAVAGE,
|
||||||
role: condition.Role,
|
role: condition.Role,
|
||||||
playerLevel: this.getPlayerLevelFromProfile(pmcProfile),
|
playerLevel: this.getPlayerLevelFromProfile(pmcProfile),
|
||||||
playerName: pmcProfile.Info.Nickname,
|
playerName: pmcProfile.Info.Nickname,
|
||||||
|
@ -20,6 +20,7 @@ import { ConfigTypes } from "@spt/models/enums/ConfigTypes";
|
|||||||
import { GameEditions } from "@spt/models/enums/GameEditions";
|
import { GameEditions } from "@spt/models/enums/GameEditions";
|
||||||
import { ItemTpl } from "@spt/models/enums/ItemTpl";
|
import { ItemTpl } from "@spt/models/enums/ItemTpl";
|
||||||
import { MemberCategory } from "@spt/models/enums/MemberCategory";
|
import { MemberCategory } from "@spt/models/enums/MemberCategory";
|
||||||
|
import { SideType } from "@spt/models/enums/SideType";
|
||||||
import { BotGenerationDetails } from "@spt/models/spt/bots/BotGenerationDetails";
|
import { BotGenerationDetails } from "@spt/models/spt/bots/BotGenerationDetails";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { IPmcConfig } from "@spt/models/spt/config/IPmcConfig";
|
import { IPmcConfig } from "@spt/models/spt/config/IPmcConfig";
|
||||||
@ -75,11 +76,11 @@ export class BotGenerator {
|
|||||||
let bot = this.getCloneOfBotBase();
|
let bot = this.getCloneOfBotBase();
|
||||||
bot.Info.Settings.BotDifficulty = difficulty;
|
bot.Info.Settings.BotDifficulty = difficulty;
|
||||||
bot.Info.Settings.Role = role;
|
bot.Info.Settings.Role = role;
|
||||||
bot.Info.Side = "Savage";
|
bot.Info.Side = SideType.SAVAGE;
|
||||||
|
|
||||||
const botGenDetails: BotGenerationDetails = {
|
const botGenDetails: BotGenerationDetails = {
|
||||||
isPmc: false,
|
isPmc: false,
|
||||||
side: "Savage",
|
side: SideType.SAVAGE,
|
||||||
role: role,
|
role: role,
|
||||||
botRelativeLevelDeltaMax: 0,
|
botRelativeLevelDeltaMax: 0,
|
||||||
botRelativeLevelDeltaMin: 0,
|
botRelativeLevelDeltaMin: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user