fix: detect kuva weapons more reliably
All checks were successful
Build / build (20) (push) Successful in 43s
Build / build (22) (push) Successful in 1m17s
Build / build (18) (push) Successful in 1m22s
Build / build (20) (pull_request) Successful in 43s
Build / build (18) (pull_request) Successful in 1m21s
Build / build (22) (pull_request) Successful in 1m22s

it seems not all of them have the InnateDamageRandomMod or even VT_KUVA so just assuming that any weapon with max rank 40 that's not the ballas sword needs it
This commit is contained in:
Sainan 2025-03-30 17:43:27 +02:00
parent cfc1524619
commit 1e1d6b853f

View File

@ -377,10 +377,7 @@ export const addItem = async (
if (premiumPurchase) { if (premiumPurchase) {
defaultOverwrites.Features = EquipmentFeatures.DOUBLE_CAPACITY; defaultOverwrites.Features = EquipmentFeatures.DOUBLE_CAPACITY;
} }
if ( if (weapon.maxLevelCap == 40 && typeName.indexOf("BallasSword") == -1) {
weapon.defaultUpgrades?.[0]?.ItemType ==
"/Lotus/Weapons/Grineer/KuvaLich/Upgrades/InnateDamageRandomMod"
) {
defaultOverwrites.UpgradeType = "/Lotus/Weapons/Grineer/KuvaLich/Upgrades/InnateDamageRandomMod"; defaultOverwrites.UpgradeType = "/Lotus/Weapons/Grineer/KuvaLich/Upgrades/InnateDamageRandomMod";
defaultOverwrites.UpgradeFingerprint = JSON.stringify({ defaultOverwrites.UpgradeFingerprint = JSON.stringify({
compat: typeName, compat: typeName,