From 3ec63ef31dd0df43fac2ce9cfc5cf18a71f9a2c0 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 23 Jan 2024 21:33:24 +0000 Subject: [PATCH] Fix issue with `addChildSlotItems()` and add additional mods --- project/assets/configs/location.json | 5 ++++- project/src/helpers/ItemHelper.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/project/assets/configs/location.json b/project/assets/configs/location.json index 6c00e2ea..b775e37a 100644 --- a/project/assets/configs/location.json +++ b/project/assets/configs/location.json @@ -1104,10 +1104,13 @@ "mod_nvg": 5, "front_plate": 50, "back_plate": 50, + "left_side_plate": 25, + "right_side_plate": 25, "mod_equipment_000": 5, "mod_equipment_001": 5, "mod_equipment_002": 5, - "mod_mount": 5 + "mod_mount": 5, + "mod_equipment": 5 } } } diff --git a/project/src/helpers/ItemHelper.ts b/project/src/helpers/ItemHelper.ts index 30d08b97..8901c3ac 100644 --- a/project/src/helpers/ItemHelper.ts +++ b/project/src/helpers/ItemHelper.ts @@ -1198,7 +1198,7 @@ export class ItemHelper const modSpawnChance = modSpawnChanceDict[slot._name.toLowerCase()]; if (modSpawnChance) { - if (!this.randomUtil.getChance100(modSpawnChanceDict[slot._name])) + if (!this.randomUtil.getChance100(modSpawnChance)) { continue; }