fix: detect kuva weapons more reliably (#1388)

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
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-03-30 09:58:44 -07:00 committed by Sainan
parent cfc1524619
commit fccdbf4a8e

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,