remove condition that always evalutes to true
All checks were successful
Build / build (pull_request) Successful in 1m17s

This commit is contained in:
Sainan 2025-07-04 07:47:21 +02:00
parent cd2fc9622a
commit a1c5936dbf

View File

@ -1483,17 +1483,15 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
ScheduleInfo: [] ScheduleInfo: []
}; };
worldState.PrimeVaultTraders.push(pt); worldState.PrimeVaultTraders.push(pt);
if (isBeforeNextExpectedWorldStateRefresh(timeMs, weekStart)) { const rotation = config.worldState?.varziaOverride || getVarziaRotation(week);
const rotation = config.worldState?.varziaOverride || getVarziaRotation(week); pt.Manifest = config.worldState?.varziaFullyStocked ? getAllVarziaManifests() : getVarziaManifest(rotation);
pt.Manifest = config.worldState?.varziaFullyStocked ? getAllVarziaManifests() : getVarziaManifest(rotation); if (config.worldState?.varziaOverride || config.worldState?.varziaFullyStocked) {
if (config.worldState?.varziaOverride || config.worldState?.varziaFullyStocked) { pt.Expiry = { $date: { $numberLong: "2000000000000" } };
pt.Expiry = { $date: { $numberLong: "2000000000000" } }; } else {
} else { pt.ScheduleInfo.push({
pt.ScheduleInfo.push({ Expiry: { $date: { $numberLong: (weekEnd + unixTimesInMs.week).toString() } },
Expiry: { $date: { $numberLong: (weekEnd + unixTimesInMs.week).toString() } }, FeaturedItem: getVarziaRotation(week + 1)
FeaturedItem: getVarziaRotation(week + 1) });
});
}
} }
} }