Merge remote-tracking branch 'upstream/master' into master

This commit is contained in:
ThatGamerBlue
2021-04-14 13:20:19 +01:00
24 changed files with 612 additions and 129 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

@@ -75,5 +75,6 @@ public class ObjectDefinition
private int anInt2112 = 0;
private int anInt2113 = 0;
private boolean blocksProjectile = true;
private boolean randomizeAnimStart;
private Map<Integer, Object> params = null;
}

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();

View File

@@ -306,6 +306,10 @@ public class ObjectLoader
{
def.setMapAreaId(is.readUnsignedShort());
}
else if (opcode == 89)
{
def.setRandomizeAnimStart(true);
}
else if (opcode == 92)
{
int varpID = is.readUnsignedShort();