idz: Add field "c" to story cell tuple

This commit is contained in:
b166fe48b91eb09f279b79a4ecf57b2f8f0d3705
2021-02-03 23:43:41 +00:00
committed by da5669c09fdb0a288ba01e259a609d7779ac7fc9
parent 46499a5425
commit ccd5fd72c8
6 changed files with 48 additions and 4 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ export function saveProfile2(buf: Buffer): SaveProfileRequest {
for (let j = 0; j < 9; j++) {
const a = buf.readUInt32LE(rowOffset + 0x04 + j * 4);
const b = buf.readUInt16LE(rowOffset + 0x28 + j * 2);
const cell = { a, b };
const c = 0; // Added in idz2
const cell = { a, b, c };
cells.set(j, cell);
}
+2 -1
View File
@@ -21,7 +21,8 @@ export function saveProfile3(buf: Buffer): SaveProfileRequest {
for (let j = 0; j < 9; j++) {
const a = buf.readUInt8(rowOffset + 0x00 + j);
const b = buf.readUInt8(rowOffset + 0x09 + j);
const cell = { a, b };
const c = 0; // Added in idz2
const cell = { a, b, c };
cells.set(j, cell);
}