Templates backfilled with modtable data
This commit is contained in:
@@ -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)) {
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user