XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

chore: put reward year into goal _id (#2626)

Closes #2623 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2626 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>

da14a408
AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
提交于

代码差异

1 个文件 +7 -4
Modified src/services/worldStateService.ts +7 -4
@@ -1801,7 +1801,10 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
1801 1801
1802 1802 worldState.Goals.push({
1803 1803 _id: {
1804 $oid: ((dogDaysStart / 1000) & 0xffffffff).toString(16).padStart(8, "0") + "c57487c3768936df"
1804 $oid:
1805 ((dogDaysStart / 1000) & 0xffffffff).toString(16).padStart(8, "0") +
1806 "c57487c3768936d" +
1807 year.toString(16)
1805 1808 },
1806 1809 Activation: { $date: { $numberLong: activationTimeStamp } },
1807 1810 Expiry: { $date: { $numberLong: expiryTimeStamp } },
@@ -2094,7 +2097,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
2094 2097 const year = config.worldState.hallowedNightmaresRewardsOverride ?? 0;
2095 2098
2096 2099 worldState.Goals.push({
2097 _id: { $oid: "5bc9e8f7972d7d184c8398c9" },
2100 _id: { $oid: "5bc98f00000000000000000" + year.toString(16) },
2098 2101 Activation: { $date: { $numberLong: "1539972000000" } },
2099 2102 Expiry: { $date: { $numberLong: "2000000000000" } },
2100 2103 Count: 0,
@@ -2119,7 +2122,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
2119 2122 });
2120 2123 if (year != 2) {
2121 2124 worldState.Goals.push({
2122 _id: { $oid: "5bca18b1e12d9e14a0b6ad27" },
2125 _id: { $oid: "5bc98f01000000000000000" + year.toString(16) },
2123 2126 Activation: { $date: { $numberLong: "1539972000000" } },
2124 2127 Expiry: { $date: { $numberLong: "2000000000000" } },
2125 2128 Count: 0,
@@ -2192,7 +2195,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
2192 2195 const year = config.worldState.proxyRebellionRewardsOverride ?? 0;
2193 2196
2194 2197 worldState.Goals.push({
2195 _id: { $oid: "5b5743ac972d7d3ed0517b0d" },
2198 _id: { $oid: "5b5b5da0000000000000000" + year.toString(16) },
2196 2199 Activation: { $date: { $numberLong: "1532714400000" } },
2197 2200 Expiry: { $date: { $numberLong: "2000000000000" } },
2198 2201 Count: 0,