Templates backfilled with modtable data

This commit is contained in:
2024-03-28 12:08:09 -04:00
parent 8e43f17da0
commit 230679cef9
6 changed files with 27 additions and 11 deletions
+1 -2
View File
@@ -640,7 +640,6 @@ public class ItemFactory {
ModTableEntry prefixEntry = null;
ModTableEntry suffixEntry = null;
ItemBase ib = ItemBase.getItemBase(templateID);
ItemTemplate template = ItemTemplate.templates.get(templateID);
if (template == null)
@@ -654,7 +653,7 @@ public class ItemFactory {
return null;
}
itemModTable = (byte) ib.getModTable();
itemModTable = (byte) template.modTable;
if (!vendor.getItemModTable().contains(itemModTable)) {
+1
View File
@@ -84,6 +84,7 @@ public class ItemTemplate {
public static HashMap<String, Integer> item_power_grant = new HashMap<>();
public HashMap<String, int[]> item_power_action = new HashMap<>();
public HashMap<Enum.ResourceType, Integer> item_resource_cost = new HashMap<>();
public int modTable;
// Deed related fields