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

SpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/SpaceNinjaServer

fix: foundry keeps refreshing, thinking argon crystals are expired (#393)

1a3b3b97
Sainan <sainan@calamity.gg>
提交于

代码差异

2 个文件 +5 -1
Modified src/controllers/api/inventoryController.ts +3 -0
@@ -136,6 +136,9 @@ const inventoryController: RequestHandler = async (request, response) => {
136 136 }
137 137 }
138 138
139 // Fix for #380
140 inventoryResponse.NextRefill = { $date: { $numberLong: "9999999999999" } };
141
139 142 response.json(inventoryResponse);
140 143 };
141 144
Modified src/types/inventoryTypes/inventoryTypes.ts +2 -1
@@ -253,7 +253,8 @@ export interface IInventoryResponse {
253 253 NemesisAbandonedRewards: string[];
254 254 DailyAffiliationKahl: number;
255 255 LastInventorySync: IOid;
256 NextRefill: IMongoDate;
256 NextRefill: IMongoDate; // Next time argon crystals will have a decay tick
257 FoundToday?: IMiscItem[]; // for Argon Crystals
257 258 ActiveLandscapeTraps: any[];
258 259 EvolutionProgress?: IEvolutionProgress[];
259 260 RepVotes: any[];