返回提交历史
Modified
src/services/worldStateService.ts
+8
-3
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
代码差异
1 个文件
+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);