返回提交历史
Modified
src/controllers/api/rerollRandomModController.ts
+3
-1
XFEstudio/XFESpaceNinjaServer
fix: exclude riven buffs from being a curse (#849)
4e8c0791
代码差异
1 个文件
+3
-1
@@ -67,7 +67,9 @@ const randomiseStats = (randomModType: string, fingerprint: IUnveiledRivenFinger
67
67
68
68
fingerprint.curses = [];
69
69
if (Math.random() < 0.5) {
70
const entry = getRandomElement(meta.upgradeEntries!.filter(x => x.canBeCurse));
70
const entry = getRandomElement(
71
meta.upgradeEntries!.filter(x => x.canBeCurse && !fingerprint.buffs.find(y => y.Tag == x.tag))
72
);
71
73
fingerprint.curses.push({ Tag: entry.tag, Value: Math.trunc(Math.random() * 0x40000000) });
72
74
}
73
75
};