Update randomisation config to specifiy its for weapon mods + add equipment mod adjustment system

Adjust PMCs to use more gear mods at higher levels
This commit is contained in:
Dev 2024-01-09 16:15:31 +00:00
parent f3964639bd
commit 154578dd44
3 changed files with 58 additions and 14 deletions

View File

@ -863,7 +863,17 @@
"FaceCover": 5 "FaceCover": 5
}, },
"randomisedWeaponModSlots": [], "randomisedWeaponModSlots": [],
"mods": { "equipmentMods": {
"back_plate": 60,
"left_side_plate": 0,
"rightside_plate": 0,
"mod_equipment": 3,
"mod_equipment_000": 3,
"mod_equipment_001": 3,
"mod_equipment_002": 3,
"mod_nvg": 3
},
"weaponMods": {
"mod_barrel": 20, "mod_barrel": 20,
"mod_bipod": 10, "mod_bipod": 10,
"mod_flashlight": 5, "mod_flashlight": 5,
@ -931,9 +941,19 @@
"mod_mount_000", "mod_mount_001", "mod_mount_002", "mod_mount_003", "mod_mount_004", "mod_mount_005", "mod_mount_006", "mod_mount_000", "mod_mount_001", "mod_mount_002", "mod_mount_003", "mod_mount_004", "mod_mount_005", "mod_mount_006",
"mod_tactical", "mod_tactical_2", "mod_tactical_000", "mod_tactical_001", "mod_tactical_002", "mod_tactical_003" "mod_tactical", "mod_tactical_2", "mod_tactical_000", "mod_tactical_001", "mod_tactical_002", "mod_tactical_003"
], ],
"mods": { "equipmentMods": {
"back_plate": 75,
"left_side_plate": 25,
"rightside_plate": 25,
"mod_equipment": 10,
"mod_equipment_000": 10,
"mod_equipment_001": 10,
"mod_equipment_002": 5,
"mod_nvg": 15
},
"weaponMods": {
"mod_barrel": 50, "mod_barrel": 50,
"mod_bipod": 10, "mod_bipod": 15,
"mod_flashlight": 35, "mod_flashlight": 35,
"mod_foregrip": 45, "mod_foregrip": 45,
"mod_handguard": 25, "mod_handguard": 25,
@ -950,11 +970,6 @@
"mod_muzzle": 25, "mod_muzzle": 25,
"mod_muzzle_000": 20, "mod_muzzle_000": 20,
"mod_muzzle_001": 20, "mod_muzzle_001": 20,
"mod_equipment": 30,
"mod_equipment_000": 40,
"mod_equipment_001": 35,
"mod_equipment_002": 30,
"mod_nvg": 20,
"mod_pistol_grip_akms": 35, "mod_pistol_grip_akms": 35,
"mod_pistol_grip": 40, "mod_pistol_grip": 40,
"mod_scope": 15, "mod_scope": 15,
@ -971,16 +986,42 @@
"mod_tactical_003": 30, "mod_tactical_003": 30,
"mod_tactical_2": 15 "mod_tactical_2": 15
} }
}, }, {
{
"levelRange": { "levelRange": {
"min": 23, "min": 23,
"max": 45
},
"equipment": {
"SecondPrimaryWeapon": 20
},
"randomisedArmorSlots": ["Headwear", "TacticalVest", "ArmorVest"],
"randomisedWeaponModSlots": ["mod_scope", "mod_scope_000", "mod_scope_001", "mod_scope_002", "mod_scope_003",
"mod_handguard", "mod_magazine", "mod_muzzle", "mod_bipod",
"mod_muzzle_000", "mod_muzzle_001", "mod_charge",
"mod_gas_block", "mod_pistol_grip", "mod_pistolgrip", "mod_pistol_grip_akms", "mod_pistolgrip_000",
"mod_foregrip", "mod_trigger", "mod_reciever", "mod_hammer",
"mod_stock", "mod_stock_000", "mod_stock_001", "mod_stock_akms", "mod_stock_axis",
"mod_mount_000", "mod_mount_001", "mod_mount_002", "mod_mount_003", "mod_mount_004", "mod_mount_005", "mod_mount_006",
"mod_tactical", "mod_tactical_2", "mod_tactical_000", "mod_tactical_001", "mod_tactical_002", "mod_tactical_003"
]
}, {
"levelRange": {
"min": 46,
"max": 100 "max": 100
}, },
"equipment": { "equipment": {
"SecondPrimaryWeapon": 20 "SecondPrimaryWeapon": 20
}, },
"randomisedArmorSlots": ["Headwear"], "equipmentMods": {
"left_side_plate": 90,
"rightside_plate": 90,
"mod_equipment": 75,
"mod_equipment_000": 80,
"mod_equipment_001": 75,
"mod_equipment_002": 90,
"mod_nvg": 60
},
"randomisedArmorSlots": ["Headwear", "TacticalVest", "ArmorVest"],
"randomisedWeaponModSlots": ["mod_scope", "mod_scope_000", "mod_scope_001", "mod_scope_002", "mod_scope_003", "randomisedWeaponModSlots": ["mod_scope", "mod_scope_000", "mod_scope_001", "mod_scope_002", "mod_scope_003",
"mod_handguard", "mod_magazine", "mod_muzzle", "mod_bipod", "mod_handguard", "mod_magazine", "mod_muzzle", "mod_bipod",
"mod_muzzle_000", "mod_muzzle_001", "mod_charge", "mod_muzzle_000", "mod_muzzle_001", "mod_charge",

View File

@ -138,8 +138,10 @@ export interface RandomisationDetails
randomisedArmorSlots?: string[]; randomisedArmorSlots?: string[];
/** Equipment chances */ /** Equipment chances */
equipment?: Record<string, number>; equipment?: Record<string, number>;
/** Mod chances */ /** Weapon mod chances */
mods?: Record<string, number>; weaponMods?: Record<string, number>;
/** Equipment mod chances */
equipmentMods?: Record<string, number>;
} }
export interface EquipmentFilterDetails export interface EquipmentFilterDetails

View File

@ -89,7 +89,8 @@ export class BotEquipmentFilterService
if (randomisationDetails) if (randomisationDetails)
{ {
this.adjustChances(randomisationDetails?.equipment, baseBotNode.chances.equipment); this.adjustChances(randomisationDetails?.equipment, baseBotNode.chances.equipment);
this.adjustChances(randomisationDetails?.mods, baseBotNode.chances.weaponMods); this.adjustChances(randomisationDetails?.weaponMods, baseBotNode.chances.weaponMods);
this.adjustChances(randomisationDetails?.equipmentMods, baseBotNode.chances.equipmentMods);
this.adjustGenerationChances(randomisationDetails?.generation, baseBotNode.generation); this.adjustGenerationChances(randomisationDetails?.generation, baseBotNode.generation);
} }
} }