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: can't rush dojo components with infinitePlatinum (#1138)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1138

1ae1cf51
Sainan <sainan@calamity.inc>
提交于

代码差异

2 个文件 +2 -2
Modified src/controllers/api/creditsController.ts +1 -1
@@ -19,7 +19,7 @@ export const creditsController: RequestHandler = async (req, res) => {
19 19 response.RegularCredits = 999999999;
20 20 }
21 21 if (config.infinitePlatinum) {
22 response.PremiumCreditsFree = 999999999;
22 response.PremiumCreditsFree = 0;
23 23 response.PremiumCredits = 999999999;
24 24 }
25 25
Modified src/controllers/api/inventoryController.ts +1 -1
@@ -70,7 +70,7 @@ export const getInventoryResponse = async (
70 70 inventoryResponse.RegularCredits = 999999999;
71 71 }
72 72 if (config.infinitePlatinum) {
73 inventoryResponse.PremiumCreditsFree = 999999999;
73 inventoryResponse.PremiumCreditsFree = 0;
74 74 inventoryResponse.PremiumCredits = 999999999;
75 75 }
76 76 if (config.infiniteEndo) {