mirror of
https://github.com/djhackersdev/minime.git
synced 2026-09-08 10:35:36 -05:00
idz: Fix updateStoryClearNum codecs
This commit is contained in:
@@ -148,6 +148,7 @@ const funcList130: ReaderFn[] = [
|
||||
discoverProfile1,
|
||||
load2on2Info,
|
||||
updateStoryClearNum2,
|
||||
updateStoryClearNum3,
|
||||
loadConfigA_1,
|
||||
loadConfigB_1,
|
||||
loadEventInfo1,
|
||||
|
||||
@@ -9,7 +9,7 @@ export function updateStoryClearNum1(buf: Buffer): UpdateStoryClearNumRequest {
|
||||
};
|
||||
}
|
||||
|
||||
updateStoryClearNum2.msgCode = 0x013d;
|
||||
updateStoryClearNum2.msgCode = 0x097f;
|
||||
updateStoryClearNum2.msgLen = 0x0010;
|
||||
|
||||
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;
|
||||
|
||||
export function updateStoryClearNum3(buf: Buffer): UpdateStoryClearNumRequest {
|
||||
|
||||
@@ -52,6 +52,7 @@ import {
|
||||
import {
|
||||
updateStoryClearNum1,
|
||||
updateStoryClearNum2,
|
||||
updateStoryClearNum3,
|
||||
} from "./updateStoryClearNum";
|
||||
import { updateTeamLeader1, updateTeamLeader2 } from "./updateTeamLeader";
|
||||
import { updateTeamMember1, updateTeamMember2 } from "./updateTeamMember";
|
||||
@@ -375,7 +376,7 @@ function encode210(res: Response): Buffer {
|
||||
return updateProvisionalStoreRank1(res);
|
||||
|
||||
case "update_story_clear_num_res":
|
||||
return updateStoryClearNum2(res);
|
||||
return updateStoryClearNum3(res);
|
||||
|
||||
case "update_team_leader_res":
|
||||
return updateTeamLeader1(res);
|
||||
|
||||
@@ -19,3 +19,13 @@ export function updateStoryClearNum2(
|
||||
|
||||
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