|
|
@ -2539,6 +2539,7 @@ public class mbEnums { |
|
|
|
private final String[][] ranks; //Stored Rank#->Gender(M,F)
|
|
|
|
private final String[][] ranks; //Stored Rank#->Gender(M,F)
|
|
|
|
private final String[] leadershipTypes; |
|
|
|
private final String[] leadershipTypes; |
|
|
|
public final int templateID; |
|
|
|
public final int templateID; |
|
|
|
|
|
|
|
public static HashMap<Integer, GuildCharterType> templateLookup = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
|
GuildCharterType(String name, String[][] ranks, String[] leadershipTypes, EnumSet<ClassType> requiredClasses, |
|
|
|
GuildCharterType(String name, String[][] ranks, String[] leadershipTypes, EnumSet<ClassType> requiredClasses, |
|
|
|
EnumSet<MonsterType> requiredRaces, EnumSet<SexType> sexRequired, int templateID) { |
|
|
|
EnumSet<MonsterType> requiredRaces, EnumSet<SexType> sexRequired, int templateID) { |
|
|
@ -2551,6 +2552,11 @@ public class mbEnums { |
|
|
|
this.templateID = templateID; |
|
|
|
this.templateID = templateID; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void init() { |
|
|
|
|
|
|
|
for (GuildCharterType guildCharterType : GuildCharterType.values()) |
|
|
|
|
|
|
|
GuildCharterType.templateLookup.put(guildCharterType.templateID, guildCharterType); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static GuildCharterType getGuildTypeFromCharter(Item charter) { |
|
|
|
public static GuildCharterType getGuildTypeFromCharter(Item charter) { |
|
|
|
|
|
|
|
|
|
|
|
GuildCharterType charterType; |
|
|
|
GuildCharterType charterType; |
|
|
|