Added config option forceRigWhenNoVest
Wired up to bot generation Updated Raiders to use true value
This commit is contained in:
parent
53e0a74a1f
commit
cabd17d2c9
@ -789,6 +789,7 @@
|
||||
"lightIsActiveNightChancePercent": 95,
|
||||
"laserIsActiveChancePercent": 95,
|
||||
"forceOnlyArmoredRigWhenNoArmor": true,
|
||||
"forceRigWhenNoVest": true,
|
||||
"forceStock": true,
|
||||
"weaponModLimits": {
|
||||
"scopeLimit": 1,
|
||||
|
@ -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,
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user