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: []
};
worldState.PrimeVaultTraders.push(pt);
if (isBeforeNextExpectedWorldStateRefresh(timeMs, weekStart)) {
const rotation = config.worldState?.varziaOverride || getVarziaRotation(week);
pt.Manifest = config.worldState?.varziaFullyStocked ? getAllVarziaManifests() : getVarziaManifest(rotation);
if (config.worldState?.varziaOverride || config.worldState?.varziaFullyStocked) {
pt.Expiry = { $date: { $numberLong: "2000000000000" } };
} else {
pt.ScheduleInfo.push({
Expiry: { $date: { $numberLong: (weekEnd + unixTimesInMs.week).toString() } },
FeaturedItem: getVarziaRotation(week + 1)
});
}
const rotation = config.worldState?.varziaOverride || getVarziaRotation(week);
pt.Manifest = config.worldState?.varziaFullyStocked ? getAllVarziaManifests() : getVarziaManifest(rotation);
if (config.worldState?.varziaOverride || config.worldState?.varziaFullyStocked) {
pt.Expiry = { $date: { $numberLong: "2000000000000" } };
} else {
pt.ScheduleInfo.push({
Expiry: { $date: { $numberLong: (weekEnd + unixTimesInMs.week).toString() } },
FeaturedItem: getVarziaRotation(week + 1)
});
}
}