forked from MagicBane/Server
server side race/cass restrictions
This commit is contained in:
@@ -10,6 +10,7 @@ package engine;
|
||||
|
||||
import ch.claude_martin.enumbitset.EnumBitSetHelper;
|
||||
import engine.gameManager.ConfigManager;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.gameManager.PowersManager;
|
||||
import engine.gameManager.ZoneManager;
|
||||
import engine.math.Vector2f;
|
||||
@@ -2518,11 +2519,17 @@ public class Enum {
|
||||
private final String name;
|
||||
private final String[][] ranks; //Stored Rank#->Gender(M,F)
|
||||
private final String[] leadershipTypes;
|
||||
public final ArrayList<PromoteType> requiredClasses;
|
||||
public final ArrayList<MonsterType> requiredRaces;
|
||||
public final SexType sexRequired;
|
||||
|
||||
GuildType(String name, String[][] ranks, String[] leadershipTypes) {
|
||||
this.name = name;
|
||||
this.ranks = ranks;
|
||||
this.leadershipTypes = leadershipTypes;
|
||||
this.requiredClasses = DbManager.GuildQueries.LOAD_CHARTER_CLASS_RESTRICTIONS(this.name);
|
||||
this.requiredRaces = DbManager.GuildQueries.LOAD_CHARTER_RACE_RESTRICTIONS(this.name);
|
||||
this.sexRequired = DbManager.GuildQueries.LOAD_CHARTER_SEX_RESTRICTIONS(this.name);
|
||||
}
|
||||
|
||||
public static GuildType getGuildTypeFromCharter(ItemBase itemBase) {
|
||||
|
||||
Reference in New Issue
Block a user