chore: put reward year into goal _id #2626

Merged
Sainan merged 2 commits from AMelonInsideLemon/SpaceNinjaServer:reward-year-in-goail-id into main 2025-08-15 21:02:18 -07:00
Showing only changes of commit d27d2f9c5e - Show all commits

View File

@ -1804,7 +1804,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
$oid:
((dogDaysStart / 1000) & 0xffffffff).toString(16).padStart(8, "0") +
"c57487c3768936d" +
year.toString()
year.toString(16)
},
Activation: { $date: { $numberLong: activationTimeStamp } },
Expiry: { $date: { $numberLong: expiryTimeStamp } },
@ -2097,7 +2097,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
const year = config.worldState.hallowedNightmaresRewardsOverride ?? 0;
worldState.Goals.push({
_id: { $oid: "5bc98f00000000000000000" + year.toString() },
_id: { $oid: "5bc98f00000000000000000" + year.toString(16) },
Activation: { $date: { $numberLong: "1539972000000" } },
Expiry: { $date: { $numberLong: "2000000000000" } },
Count: 0,
@ -2122,7 +2122,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
});
if (year != 2) {
worldState.Goals.push({
_id: { $oid: "5bc98f01000000000000000" + year.toString() },
_id: { $oid: "5bc98f01000000000000000" + year.toString(16) },
Activation: { $date: { $numberLong: "1539972000000" } },
Expiry: { $date: { $numberLong: "2000000000000" } },
Count: 0,
@ -2195,7 +2195,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
const year = config.worldState.proxyRebellionRewardsOverride ?? 0;
worldState.Goals.push({
_id: { $oid: "5b5b5da0000000000000000" + year.toString() },
_id: { $oid: "5b5b5da0000000000000000" + year.toString(16) },
Activation: { $date: { $numberLong: "1532714400000" } },
Expiry: { $date: { $numberLong: "2000000000000" } },
Count: 0,