Mobtype work related to ForgeManager

This commit is contained in:
2024-04-14 13:13:28 -04:00
parent 74e97fb435
commit ea555be08e
6 changed files with 27 additions and 14 deletions
+3 -3
View File
@@ -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;
}
+1 -1
View File
@@ -663,7 +663,7 @@ public class ItemFactory {
return null;
}
for (byte temp : vendor.getItemModTable()) {
for (int temp : vendor.getItemModTable()) {
if (itemModTable != temp)
continue;
+2 -2
View File
@@ -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;
}