fix(modifications): grant custom-slot weapon containers and support unit weapons

This commit is contained in:
N0VAN0M4LY committed 2026-11-30 19:18:16 +08:00
1 parent 62da2e3038
commit 388dc9d9d7
4 files changed
+97 -37

No files matched your search

+1 -1
View File
@@ -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) });
}
}