fix(modifications): grant custom-slot weapon containers and support unit weapons
This commit is contained in:
1 parent
62da2e3038
commit
388dc9d9d7
4 files changed
+97
-37
No files matched your search
@@ -69,7 +69,7 @@ function grantUnlockedFreeWeapons(index: ProfileEquipmentIndex, vehicle: string,
|
||||
for (const weapon of weapons) {
|
||||
if (!isFreeWeapon(weapon) || index.weaponRecord(vehicle, weapon.name)) continue;
|
||||
if (!prerequisitesOwned(index, vehicle, weapon.requires)) continue;
|
||||
index.writeWeaponRecord(vehicle, weapon.name, { silverLionsSpent: 0, goldenEaglesSpent: 0, count: 1 });
|
||||
index.writeWeaponRecord(vehicle, weapon.name, { silverLionsSpent: 0, goldenEaglesSpent: 0, count: Math.max(1, weapon.maxCount) });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user