Added config option forceRigWhenNoVest

Wired up to bot generation

Updated Raiders to use true value
This commit is contained in:
Dev 2024-09-23 12:16:47 +01:00
parent 53e0a74a1f
commit cabd17d2c9
3 changed files with 8 additions and 1 deletions

View File

@ -789,6 +789,7 @@
"lightIsActiveNightChancePercent": 95,
"laserIsActiveChancePercent": 95,
"forceOnlyArmoredRigWhenNoArmor": true,
"forceRigWhenNoVest": true,
"forceStock": true,
"weaponModLimits": {
"scopeLimit": 1,

View File

@ -240,7 +240,7 @@ export class BotInventoryGenerator {
randomisationDetails: randomistionDetails,
});
// Bot has no armor vest and flagged to be foreced to wear armored rig in this event
// Bot has no armor vest and flagged to be forceed to wear armored rig in this event
if (botEquipConfig.forceOnlyArmoredRigWhenNoArmor && !hasArmorVest) {
// Filter rigs down to only those with armor
this.filterRigsToThoseWithProtection(templateInventory.equipment);
@ -252,6 +252,11 @@ export class BotInventoryGenerator {
this.filterRigsToThoseWithoutProtection(templateInventory.equipment);
}
// Bot is flagged as always needing a vest
if (botEquipConfig.forceRigWhenNoVest && !hasArmorVest) {
wornItemChances.equipment.TacticalVest = 100;
}
this.generateEquipment({
rootEquipmentSlot: EquipmentSlots.TACTICAL_VEST,
rootEquipmentPool: templateInventory.equipment.TacticalVest,

View File

@ -138,6 +138,7 @@ export interface EquipmentFilters {
/** Should the stock mod be forced to spawn on bot */
forceStock?: boolean;
armorPlateWeighting?: IArmorPlateWeights[];
forceRigWhenNoVest?: boolean;
}
export interface ModLimits {