idz: Fix updateStoryClearNum codecs
This commit is contained in:
@@ -148,6 +148,7 @@ const funcList130: ReaderFn[] = [
|
|||||||
discoverProfile1,
|
discoverProfile1,
|
||||||
load2on2Info,
|
load2on2Info,
|
||||||
updateStoryClearNum2,
|
updateStoryClearNum2,
|
||||||
|
updateStoryClearNum3,
|
||||||
loadConfigA_1,
|
loadConfigA_1,
|
||||||
loadConfigB_1,
|
loadConfigB_1,
|
||||||
loadEventInfo1,
|
loadEventInfo1,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export function updateStoryClearNum1(buf: Buffer): UpdateStoryClearNumRequest {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
updateStoryClearNum2.msgCode = 0x013d;
|
updateStoryClearNum2.msgCode = 0x097f;
|
||||||
updateStoryClearNum2.msgLen = 0x0010;
|
updateStoryClearNum2.msgLen = 0x0010;
|
||||||
|
|
||||||
export function updateStoryClearNum2(buf: Buffer): UpdateStoryClearNumRequest {
|
export function updateStoryClearNum2(buf: Buffer): UpdateStoryClearNumRequest {
|
||||||
@@ -18,7 +18,7 @@ export function updateStoryClearNum2(buf: Buffer): UpdateStoryClearNumRequest {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
updateStoryClearNum3.msgCode = 0x097f;
|
updateStoryClearNum3.msgCode = 0x013d;
|
||||||
updateStoryClearNum3.msgLen = 0x0010;
|
updateStoryClearNum3.msgLen = 0x0010;
|
||||||
|
|
||||||
export function updateStoryClearNum3(buf: Buffer): UpdateStoryClearNumRequest {
|
export function updateStoryClearNum3(buf: Buffer): UpdateStoryClearNumRequest {
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
updateStoryClearNum1,
|
updateStoryClearNum1,
|
||||||
updateStoryClearNum2,
|
updateStoryClearNum2,
|
||||||
|
updateStoryClearNum3,
|
||||||
} from "./updateStoryClearNum";
|
} from "./updateStoryClearNum";
|
||||||
import { updateTeamLeader1, updateTeamLeader2 } from "./updateTeamLeader";
|
import { updateTeamLeader1, updateTeamLeader2 } from "./updateTeamLeader";
|
||||||
import { updateTeamMember1, updateTeamMember2 } from "./updateTeamMember";
|
import { updateTeamMember1, updateTeamMember2 } from "./updateTeamMember";
|
||||||
@@ -375,7 +376,7 @@ function encode210(res: Response): Buffer {
|
|||||||
return updateProvisionalStoreRank1(res);
|
return updateProvisionalStoreRank1(res);
|
||||||
|
|
||||||
case "update_story_clear_num_res":
|
case "update_story_clear_num_res":
|
||||||
return updateStoryClearNum2(res);
|
return updateStoryClearNum3(res);
|
||||||
|
|
||||||
case "update_team_leader_res":
|
case "update_team_leader_res":
|
||||||
return updateTeamLeader1(res);
|
return updateTeamLeader1(res);
|
||||||
|
|||||||
@@ -19,3 +19,13 @@ export function updateStoryClearNum2(
|
|||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function updateStoryClearNum3(
|
||||||
|
res: UpdateStoryClearNumResponse
|
||||||
|
): Buffer {
|
||||||
|
const buf = Buffer.alloc(0x0510);
|
||||||
|
|
||||||
|
buf.writeInt16LE(0x013e, 0x0000);
|
||||||
|
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user