Skip to content

Commit 9792e65

Browse files
committed
cache2: add item subops
1 parent b43d887 commit 9792e65

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

cache2-ts/src/loaders/Item.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export class Item extends PerFileLoadable {
3636
public femaleModel1 = <ModelID> -1;
3737
public groundActions: (string | null)[] = [null, null, "Take", null, null];
3838
public inventoryActions: (string | null)[] = [null, null, null, null, "Drop"];
39+
public subops: string[][] = [];
3940
public recolorFrom: HSL[] = <HSL[]> [];
4041
public recolorTo: HSL[] = <HSL[]> [];
4142
public retextureFrom: TextureID[] = <TextureID[]> [];
@@ -163,6 +164,18 @@ export class Item extends PerFileLoadable {
163164
case 42:
164165
v.shiftClickIndex = r.i8();
165166
break;
167+
case 43: {
168+
let index = r.u8();
169+
let subop = v.subops[index] ??= [];
170+
for (;;) {
171+
let subindex = r.u8() - 1;
172+
if (subindex < 0) {
173+
break;
174+
}
175+
subop[subindex] = r.string();
176+
}
177+
break;
178+
}
166179
case 65:
167180
v.isGrandExchangable = true;
168181
break;

0 commit comments

Comments
 (0)