返回提交历史
Modified
src/services/inventoryService.ts
+1
-4
XFEstudio/XFESpaceNinjaServer
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>
fccdbf4a
代码差异
1 个文件
+1
-4
@@ -377,10 +377,7 @@ export const addItem = async (
377
377
if (premiumPurchase) {
378
378
defaultOverwrites.Features = EquipmentFeatures.DOUBLE_CAPACITY;
379
379
}
380
if (
381
weapon.defaultUpgrades?.[0]?.ItemType ==
382
"/Lotus/Weapons/Grineer/KuvaLich/Upgrades/InnateDamageRandomMod"
383
) {
380
if (weapon.maxLevelCap == 40 && typeName.indexOf("BallasSword") == -1) {
384
381
defaultOverwrites.UpgradeType = "/Lotus/Weapons/Grineer/KuvaLich/Upgrades/InnateDamageRandomMod";
385
382
defaultOverwrites.UpgradeFingerprint = JSON.stringify({
386
383
compat: typeName,