Skip to content

Commit

Permalink
cache/NpcLoader: add category opcode from rev 195
Browse files Browse the repository at this point in the history
  • Loading branch information
abextm committed Apr 14, 2021
1 parent 36216c7 commit a0d28b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ public class NpcDefinition
public boolean rotationFlag = true;
public boolean isPet;
public Map<Integer, Object> params;
public int category;
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ else if (opcode == 17)
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();
Expand Down

0 comments on commit a0d28b2

Please sign in to comment.