chore: correct breaks in Thermia Fractures cycle (#2724)
Some checks failed
Build Docker image / docker-amd64 (push) Waiting to run
Build Docker image / docker-arm64 (push) Waiting to run
Build / build (push) Has been cancelled

Reviewed-on: #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>
This commit is contained in:
AMelonInsideLemon 2025-08-29 17:37:23 -07:00 committed by Sainan
parent 0c54c064eb
commit fa65ba3f25

View File

@ -2630,10 +2630,15 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
);
}
const thermiaFracturesCycleDay = day % 32;
const isThermiaFracturesActive = thermiaFracturesCycleDay < 14;
// Thermia Fractures activates for 14 days, with alternating 4 and 3-day breaks
const thermiaFracturesCycleDay = day % 35;
const isThermiaFracturesActive =
thermiaFracturesCycleDay < 14 || (thermiaFracturesCycleDay >= 18 && thermiaFracturesCycleDay < 32);
const activeThermiaFracturesCycleDay =
thermiaFracturesCycleDay - (thermiaFracturesCycleDay < 14 ? 0 : thermiaFracturesCycleDay < 18 ? 14 : 32);
if (config.worldState?.thermiaFracturesOverride ?? isThermiaFracturesActive) {
const activeStartDay = day - thermiaFracturesCycleDay;
const activeStartDay = day - activeThermiaFracturesCycleDay;
const count = config.worldState?.thermiaFracturesProgressOverride ?? 0;
const activation = config.worldState?.thermiaFracturesOverride ? 1740416400000 : getSortieTime(activeStartDay);