Enable Game Features and UI (#11)

* Handle GetShopListCsReq and make NPCs interactable.

* Add utils for shop excels.

* Enable game features/UI.

Co-authored-by: memetrollsXD <memetrollsxd@gmail.com>
This commit is contained in:
GanyusLeftHorn 2022-08-02 01:41:17 +02:00 committed by GitHub
parent 56aa830e6a
commit 87d98b041f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 4 deletions

View File

@ -6,5 +6,5 @@ export default async function handle(session: Session, packet: Packet) {
session.send("GetMissionDataScRsp", {
retcode: 0,
missionList: []
} as unknown as GetMissionDataScRsp);
} as GetMissionDataScRsp);
}

View File

@ -7,7 +7,30 @@ export default async function handle(session: Session, packet: Packet) {
const dataObj = {
retcode: 0,
finishedMainMissionIdList: [],
finishedMainMissionIdList: [
1000101,
1000112,
1000113,
1000201,
1000202,
1000204,
1000301,
1000401,
1000402,
1000410,
1000510,
1000601,
1010301,
1010302,
1010401,
1010403,
1010701,
1011403,
1010202,
1010902,
1011102,
4010101
],
missionEventStatusList: [],
subMissionStatusList: [],
unfinishedMainMissionIdList: []
@ -19,7 +42,7 @@ export default async function handle(session: Session, packet: Packet) {
dataObj.missionEventStatusList.push({
id: id,
progress: 0,
status: MissionStatus.MISSION_DOING
status: MissionStatus.MISSION_FINISH
});
});
@ -27,7 +50,7 @@ export default async function handle(session: Session, packet: Packet) {
dataObj.subMissionStatusList.push({
id: id,
progress: 0,
status: MissionStatus.MISSION_DOING
status: MissionStatus.MISSION_FINISH
});
});