forked from OpenWF/SpaceNinjaServer
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:
parent
cfc1524619
commit
fccdbf4a8e
@ -377,10 +377,7 @@ export const addItem = async (
|
||||
if (premiumPurchase) {
|
||||
defaultOverwrites.Features = EquipmentFeatures.DOUBLE_CAPACITY;
|
||||
}
|
||||
if (
|
||||
weapon.defaultUpgrades?.[0]?.ItemType ==
|
||||
"/Lotus/Weapons/Grineer/KuvaLich/Upgrades/InnateDamageRandomMod"
|
||||
) {
|
||||
if (weapon.maxLevelCap == 40 && typeName.indexOf("BallasSword") == -1) {
|
||||
defaultOverwrites.UpgradeType = "/Lotus/Weapons/Grineer/KuvaLich/Upgrades/InnateDamageRandomMod";
|
||||
defaultOverwrites.UpgradeFingerprint = JSON.stringify({
|
||||
compat: typeName,
|
||||
|
Loading…
x
Reference in New Issue
Block a user