add test missions and questkeys

This commit is contained in:
Master 2023-06-05 01:43:22 +08:00
parent 78f93bd5a7
commit e08df26ab3
5 changed files with 1494 additions and 4 deletions

View File

@ -5,5 +5,7 @@
"version": "33.0.14", "version": "33.0.14",
"worldSeed": "GWvLyHiw7/Qr/60056xmAmDrn0Y9et2S3BYlLSkLDNBMtumSr3KxWV8He5Jz72yYq3tsY+cd53QeTf+bb54+llGTbYiQF+64BtiLWMVhWP1IUaP4SxWHXojlpQC13op/udHI1whc+8zrxEzzZmv/QlpvigAAbjBDtwu97Df0vgn+YrOKi4G3OhgIkTRocAAzD1P/BGbT8gaKE01H8rXl3+Gq6jCA1O1v800SL6DwKOgMsXVvWp7g2n/tPxJe/j9bmu4XFG0bSa5y5hikLKxvntA/5ut+iogv4MyMBe+TydVxjPqNbkKnby5l4KAL+3inpuPraeg4jcNMt0AwKG8NIQ==", "worldSeed": "GWvLyHiw7/Qr/60056xmAmDrn0Y9et2S3BYlLSkLDNBMtumSr3KxWV8He5Jz72yYq3tsY+cd53QeTf+bb54+llGTbYiQF+64BtiLWMVhWP1IUaP4SxWHXojlpQC13op/udHI1whc+8zrxEzzZmv/QlpvigAAbjBDtwu97Df0vgn+YrOKi4G3OhgIkTRocAAzD1P/BGbT8gaKE01H8rXl3+Gq6jCA1O1v800SL6DwKOgMsXVvWp7g2n/tPxJe/j9bmu4XFG0bSa5y5hikLKxvntA/5ut+iogv4MyMBe+TydVxjPqNbkKnby5l4KAL+3inpuPraeg4jcNMt0AwKG8NIQ==",
"skipStoryModeChoice": true, "skipStoryModeChoice": true,
"skipTutorial": true "skipTutorial": true,
"testMission": true,
"testQuestKey": true
} }

View File

@ -2,6 +2,9 @@
import { toInventoryResponse } from "@/src/helpers/inventoryHelpers"; import { toInventoryResponse } from "@/src/helpers/inventoryHelpers";
import { Inventory } from "@/src/models/inventoryModel"; import { Inventory } from "@/src/models/inventoryModel";
import { Request, RequestHandler, Response } from "express"; import { Request, RequestHandler, Response } from "express";
import config from "@/config.json";
import testMissions from "@/static/fixed_responses/testMissions.json";
import testQuestKeys from "@/static/fixed_responses/testQuestKeys.json";
const inventoryController: RequestHandler = async (request: Request, response: Response) => { const inventoryController: RequestHandler = async (request: Request, response: Response) => {
const accountId = request.query.accountId; const accountId = request.query.accountId;
@ -23,6 +26,9 @@ const inventoryController: RequestHandler = async (request: Request, response: R
const inventoreResponse = toInventoryResponse(inventoryJSON); const inventoreResponse = toInventoryResponse(inventoryJSON);
if (config.testMission) inventoreResponse.Missions = testMissions;
if (config.testQuestKey) inventoreResponse.QuestKeys = testQuestKeys;
response.json(inventoreResponse); response.json(inventoreResponse);
}; };

View File

@ -992,9 +992,9 @@ export interface PlayerSkills {
} }
export interface QuestKey { export interface QuestKey {
Progress: Progress[]; Progress?: Progress[];
unlock: boolean; unlock?: boolean;
Completed: boolean; Completed?: boolean;
ItemType: string; ItemType: string;
CompletionDate?: Date; CompletionDate?: Date;
} }

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
[
{
"ItemType": "/Lotus/Types/Keys/InfestedIntroQuest/InfestedIntroQuestKeyChain"
},
{
"ItemType": "/Lotus/Types/Keys/KubrowQuest/KubrowQuestKeyChain"
},
{
"ItemType": "/Lotus/Types/Keys/DuviriQuest/DuviriQuestKeyChain"
}
]