cache/NpcLoader: add category opcode from rev 195

This commit is contained in:
Max Weber
2021-04-13 10:52:03 -06:00
parent 36216c7cf4
commit a0d28b2f42
2 changed files with 5 additions and 0 deletions

View File

@@ -64,4 +64,5 @@ public class NpcDefinition
public boolean rotationFlag = true;
public boolean isPet;
public Map<Integer, Object> params;
public int category;
}

View File

@@ -98,6 +98,10 @@ public class NpcLoader
def.rotate90RightAnimation = stream.readUnsignedShort();
def.rotate90LeftAnimation = stream.readUnsignedShort();
}
else if (opcode == 18)
{
def.category = stream.readUnsignedShort();
}
else if (opcode >= 30 && opcode < 35)
{
def.actions[opcode - 30] = stream.readString();