Mobtype work related to ForgeManager
This commit is contained in:
@@ -34,7 +34,7 @@ public class Contract extends AbstractGameObject {
|
||||
private ArrayList<Integer> npcMenuOptions = new ArrayList<>();
|
||||
private ArrayList<Integer> npcModTypeTable = new ArrayList<>();
|
||||
private ArrayList<Integer> npcModSuffixTable = new ArrayList<>();
|
||||
private ArrayList<Byte> itemModTable = new ArrayList<>();
|
||||
private ArrayList<Integer> itemModTable = new ArrayList<>();
|
||||
private ArrayList<Item> sellInventory = new ArrayList<>();
|
||||
public EnumSet<mbEnums.BuildingGroup> allowedBuildings;
|
||||
private ArrayList<Integer> buyItemType = new ArrayList<>();
|
||||
@@ -122,7 +122,7 @@ public class Contract extends AbstractGameObject {
|
||||
if (!itemMod.isEmpty()) {
|
||||
String[] data2 = itemMod.split(" ");
|
||||
for (byte i = 0; i < data2.length; i++) {
|
||||
this.itemModTable.add(Byte.parseByte(data2[i]));
|
||||
this.itemModTable.add(Integer.parseInt(data2[i]));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -193,7 +193,7 @@ public class Contract extends AbstractGameObject {
|
||||
return npcModSuffixTable;
|
||||
}
|
||||
|
||||
public ArrayList<Byte> getItemModTable() {
|
||||
public ArrayList<Integer> getItemModTable() {
|
||||
return itemModTable;
|
||||
}
|
||||
|
||||
|
||||
@@ -663,7 +663,7 @@ public class ItemFactory {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (byte temp : vendor.getItemModTable()) {
|
||||
for (int temp : vendor.getItemModTable()) {
|
||||
|
||||
if (itemModTable != temp)
|
||||
continue;
|
||||
|
||||
@@ -70,7 +70,7 @@ public class NPC extends AbstractCharacter {
|
||||
protected int vendorID;
|
||||
protected ArrayList<Integer> modTypeTable;
|
||||
protected ArrayList<Integer> modSuffixTable;
|
||||
protected ArrayList<Byte> itemModTable;
|
||||
protected ArrayList<Integer> itemModTable;
|
||||
protected int symbol;
|
||||
// Variables NOT to be stored in db
|
||||
protected boolean isStatic = false;
|
||||
@@ -805,7 +805,7 @@ public class NPC extends AbstractCharacter {
|
||||
return modSuffixTable;
|
||||
}
|
||||
|
||||
public ArrayList<Byte> getItemModTable() {
|
||||
public ArrayList<Integer> getItemModTable() {
|
||||
return itemModTable;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user