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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/XFESpaceNinjaServer

chore: correct breaks in Thermia Fractures cycle (#2724)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2724 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>

fa65ba3f
AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
提交于

代码差异

1 个文件 +8 -3
Modified src/services/worldStateService.ts +8 -3
@@ -2630,10 +2630,15 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
2630 2630 );
2631 2631 }
2632 2632
2633 const thermiaFracturesCycleDay = day % 32;
2634 const isThermiaFracturesActive = thermiaFracturesCycleDay < 14;
2633 // Thermia Fractures activates for 14 days, with alternating 4 and 3-day breaks
2634 const thermiaFracturesCycleDay = day % 35;
2635 const isThermiaFracturesActive =
2636 thermiaFracturesCycleDay < 14 || (thermiaFracturesCycleDay >= 18 && thermiaFracturesCycleDay < 32);
2637 const activeThermiaFracturesCycleDay =
2638 thermiaFracturesCycleDay - (thermiaFracturesCycleDay < 14 ? 0 : thermiaFracturesCycleDay < 18 ? 14 : 32);
2639
2635 2640 if (config.worldState?.thermiaFracturesOverride ?? isThermiaFracturesActive) {
2636 const activeStartDay = day - thermiaFracturesCycleDay;
2641 const activeStartDay = day - activeThermiaFracturesCycleDay;
2637 2642
2638 2643 const count = config.worldState?.thermiaFracturesProgressOverride ?? 0;
2639 2644 const activation = config.worldState?.thermiaFracturesOverride ? 1740416400000 : getSortieTime(activeStartDay);