返回提交历史
Modified
src/services/worldStateService.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
fix: correct idToBountyCycle using eidolonCycleDuration (#3652)
Closes #3651 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3652 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
6235c623
代码差异
1 个文件
+1
-1
@@ -4147,7 +4147,7 @@ export const populateDailyDeal = async (worldState: IWorldState): Promise<void>
4147
4147
};
4148
4148
4149
4149
export const idToBountyCycle = (id: string): number => {
4150
return Math.trunc((parseInt(id.substring(0, 8), 16) * 1000) / 9000_000);
4150
return Math.round((parseInt(id.substring(0, 8), 16) - bountyEpoch) / eidolonCycleDuration);
4151
4151
};
4152
4152
4153
4153
export const idToDay = (id: string): number => {