diff --git a/src/engine/mbEnums.java b/src/engine/mbEnums.java index 974d5454..b369a546 100644 --- a/src/engine/mbEnums.java +++ b/src/engine/mbEnums.java @@ -2539,6 +2539,7 @@ public class mbEnums { private final String[][] ranks; //Stored Rank#->Gender(M,F) private final String[] leadershipTypes; public final int templateID; + public static HashMap templateLookup = new HashMap<>(); GuildCharterType(String name, String[][] ranks, String[] leadershipTypes, EnumSet requiredClasses, EnumSet requiredRaces, EnumSet sexRequired, int templateID) { @@ -2551,6 +2552,11 @@ public class mbEnums { this.templateID = templateID; } + public static void init() { + for (GuildCharterType guildCharterType : GuildCharterType.values()) + GuildCharterType.templateLookup.put(guildCharterType.templateID, guildCharterType); + } + public static GuildCharterType getGuildTypeFromCharter(Item charter) { GuildCharterType charterType;