add test missions and questkeys
This commit is contained in:
parent
78f93bd5a7
commit
e08df26ab3
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
1471
static/fixed_responses/testMissions.json
Normal file
1471
static/fixed_responses/testMissions.json
Normal file
File diff suppressed because it is too large
Load Diff
11
static/fixed_responses/testQuestKeys.json
Normal file
11
static/fixed_responses/testQuestKeys.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"ItemType": "/Lotus/Types/Keys/InfestedIntroQuest/InfestedIntroQuestKeyChain"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ItemType": "/Lotus/Types/Keys/KubrowQuest/KubrowQuestKeyChain"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ItemType": "/Lotus/Types/Keys/DuviriQuest/DuviriQuestKeyChain"
|
||||||
|
}
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user