返回提交历史
Modified
src/helpers/rivenHelper.ts
+2
-1
XFEstudio/XFESpaceNinjaServer
fix: don't assume a compatible riven weapon is in ExportWeapons (#4045)
e.g. /Lotus/Weapons/Tenno/Melee/Dagger/DarkDaggerBase Closes #4044 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4045 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
a28b7767
代码差异
1 个文件
+2
-1
@@ -64,7 +64,8 @@ export const createUnveiledRivenFingerprint = (
64
64
// "Although Beast Companions had their weapons separated in Update 37.0, Veiled Companion Riven mods can still only become mods for Robotic Weapons." (https://wiki.warframe.com/w/Riven%20Mods)
65
65
// ^ To be faithful to this, we're checking for the SENTINEL_WEAPON compatibility tag instead of the "SentinelWeapons" productCategory.
66
66
const isSentinelWeapon =
67
(ExportWeapons[weaponType].compatibilityTags?.indexOf("SENTINEL_WEAPON") ?? -1) != -1;
67
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
68
(ExportWeapons[weaponType]?.compatibilityTags?.indexOf("SENTINEL_WEAPON") ?? -1) != -1;
68
69
return IsSentinel ? isSentinelWeapon : !isSentinelWeapon;
69
70
})
70
71
)!,