返回提交历史
Modified
src/controllers/api/nemesisController.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
chore: slightly more faithful cutoff for valence fusion (#1418)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1418 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
9e1a5d50
代码差异
1 个文件
+1
-1
@@ -27,7 +27,7 @@ export const nemesisController: RequestHandler = async (req, res) => {
27
27
const destDamage = 0.25 + (destFingerprint.buffs[0].Value / 0x3fffffff) * (0.6 - 0.25);
28
28
const sourceDamage = 0.25 + (sourceFingerprint.buffs[0].Value / 0x3fffffff) * (0.6 - 0.25);
29
29
let newDamage = Math.max(destDamage, sourceDamage) * 1.1;
30
if (newDamage >= 0.58) {
30
if (newDamage >= 0.5794998) {
31
31
newDamage = 0.6;
32
32
}
33
33
destFingerprint.buffs[0].Value = Math.trunc(((newDamage - 0.25) / (0.6 - 0.25)) * 0x3fffffff);