XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified src/controllers/api/nemesisController.ts +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);