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

feat: restock darvo (#221)

7fa9d08a
Sainan <sainan@calamity.gg>
提交于

代码差异

3 个文件 +11 -1
Added src/controllers/api/getDailyDealStockLevelsController.ts +8 -0
@@ -0,0 +1,8 @@
1 import { RequestHandler } from "express";
2
3 export const getDailyDealStockLevelsController: RequestHandler = (req, res) => {
4 res.json({
5 StoreItem: req.query.productName,
6 AmountSold: 0
7 });
8 };
Modified src/routes/api.ts +2 -0
@@ -47,6 +47,7 @@ import { createGuildController } from "@/src/controllers/api/createGuildControll
47 47 import { sellController } from "@/src/controllers/api/sellController";
48 48 import { upgradesController } from "@/src/controllers/api/upgradesController";
49 49 import { setSupportedSyndicateController } from "@/src/controllers/api/setSupportedSyndicateController";
50 import { getDailyDealStockLevelsController } from "@/src/controllers/api/getDailyDealStockLevelsController";
50 51
51 52 const apiRouter = express.Router();
52 53
@@ -75,6 +76,7 @@ apiRouter.get("/setBootLocation.php", setBootLocationController);
75 76 apiRouter.get("/setActiveShip.php", setActiveShipController);
76 77 apiRouter.get("/getGuild.php", getGuildController);
77 78 apiRouter.get("/setSupportedSyndicate.php", setSupportedSyndicateController);
79 apiRouter.get("/getDailyDealStockLevels.php", getDailyDealStockLevelsController);
78 80
79 81 // post
80 82 // eslint-disable-next-line @typescript-eslint/no-misused-promises
Modified static/fixed_responses/worldState.json +1 -1
@@ -942,7 +942,7 @@
942 942 "OriginalPrice": 40,
943 943 "SalePrice": 20,
944 944 "AmountTotal": 50,
945 "AmountSold": 50
945 "AmountSold": 0
946 946 }
947 947 ],
948 948 "LibraryInfo": { "LastCompletedTargetType": "/Lotus/Types/Game/Library/Targets/Research7Target" },