Expanded weapon crate fix to include common/rare creates

(cherry picked from commit 111b75d1ab)
This commit is contained in:
Dev 2024-07-15 11:30:03 +01:00
parent 1762f1637d
commit 815e6e238c

View File

@ -878,7 +878,8 @@ export class InventoryController
let foundInRaid = openedItem.upd?.SpawnedInSession;
const rewards: Item[][] = [];
if (isSealedWeaponBox || containerDetailsDb[1]._id === "665829424de4820934746ce6") // Temp fix for unlocked weapon crate hideout craft
const unlockedWeaponCrates = ["665829424de4820934746ce6", "665732e7ac60f009f270d1ef"];// Temp fix for unlocked weapon crate hideout craft
if (isSealedWeaponBox || unlockedWeaponCrates.includes(containerDetailsDb[1]._id))
{
const containerSettings = this.inventoryHelper.getInventoryConfig().sealedAirdropContainer;
rewards.push(...this.lootGenerator.getSealedWeaponCaseLoot(containerSettings));