Balthus Knights character creation support.
This commit is contained in:
@@ -86,6 +86,7 @@ public final class Config
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
private static final String ATTENDANCE_CONFIG_FILE = "./config/AttendanceRewards.ini";
|
||||
private static final String BALTHUS_KNIGHTS_CONFIG_FILE = "./config/BalthusKnights.ini";
|
||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
||||
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||
@@ -145,6 +146,12 @@ public final class Config
|
||||
public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT;
|
||||
public static int ATTENDANCE_REWARD_DELAY;
|
||||
public static boolean ATTENDANCE_POPUP_WINDOW;
|
||||
public static boolean BALTHUS_KNIGHTS_ENABLED;
|
||||
public static int BALTHUS_KNIGHTS_LEVEL;
|
||||
public static boolean BALTHUS_KNIGHTS_PREMIUM;
|
||||
public static Location BALTHUS_KNIGHTS_LOCATION;
|
||||
public static List<ItemHolder> BALTHUS_KNIGHTS_REWARDS;
|
||||
public static boolean BALTHUS_KNIGHTS_REWARD_SKILLS;
|
||||
public static boolean PLAYER_DELEVEL;
|
||||
public static int DELEVEL_MINIMUM;
|
||||
public static boolean DECREASE_SKILL_LEVEL;
|
||||
@@ -1399,12 +1406,32 @@ public final class Config
|
||||
|
||||
// Load Attandance config file (if exists)
|
||||
final PropertiesParser Attandance = new PropertiesParser(ATTENDANCE_CONFIG_FILE);
|
||||
|
||||
ENABLE_ATTENDANCE_REWARDS = Attandance.getBoolean("EnableAttendanceRewards", false);
|
||||
PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false);
|
||||
ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false);
|
||||
ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30);
|
||||
ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false);
|
||||
|
||||
// Load BalthusKnights config file (if exists)
|
||||
final PropertiesParser BalthusKnights = new PropertiesParser(BALTHUS_KNIGHTS_CONFIG_FILE);
|
||||
|
||||
BALTHUS_KNIGHTS_ENABLED = BalthusKnights.getBoolean("BalthusKnightsEnabled", true);
|
||||
BALTHUS_KNIGHTS_LEVEL = BalthusKnights.getInt("BalthusKnightsLevel", 85);
|
||||
BALTHUS_KNIGHTS_PREMIUM = BalthusKnights.getBoolean("BalthusKnightsPremium", true);
|
||||
final String[] balthusKnightsLocation = BalthusKnights.getString("BalthusKnightsLocation", "-114371,256483,-1286").split(",");
|
||||
BALTHUS_KNIGHTS_LOCATION = new Location(Integer.parseInt(balthusKnightsLocation[0]), Integer.parseInt(balthusKnightsLocation[1]), Integer.parseInt(balthusKnightsLocation[2]));
|
||||
BALTHUS_KNIGHTS_REWARDS = new ArrayList<>();
|
||||
for (String s : BalthusKnights.getString("BalthusKnightsRewards", "46919;1").split(","))
|
||||
{
|
||||
if (s.isEmpty())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
BALTHUS_KNIGHTS_REWARDS.add(new ItemHolder(Integer.parseInt(s.split(";")[0]), Integer.parseInt(s.split(";")[1])));
|
||||
}
|
||||
BALTHUS_KNIGHTS_REWARD_SKILLS = BalthusKnights.getBoolean("BalthusKnightsRewardSkills", true);
|
||||
|
||||
// Load Character config file (if exists)
|
||||
final PropertiesParser Character = new PropertiesParser(CHARACTER_CONFIG_FILE);
|
||||
|
||||
|
Reference in New Issue
Block a user