2
0
Fork 0

temporary workaround for skeletons

main
KeyLime17 7 months ago
parent 81e7df1701
commit 9cc82a76ba

@ -13,6 +13,7 @@ public class CinderLoE_Config {
public static float enchantment_color_green; public static float enchantment_color_green;
public static float enchantment_color_blue; public static float enchantment_color_blue;
public static String corrupt_faction; public static String corrupt_faction;
public static String skeleton_faction;
public static boolean objective_lindon; public static boolean objective_lindon;
public static boolean objective_arnor; public static boolean objective_arnor;
@ -41,7 +42,8 @@ public class CinderLoE_Config {
enchantment_color_green = config.getFloat("EnchantmentColorGreen", Configuration.CATEGORY_GENERAL, 0.19f, 0.0f, 1.0f, "Configure green color for enchantments"); enchantment_color_green = config.getFloat("EnchantmentColorGreen", Configuration.CATEGORY_GENERAL, 0.19f, 0.0f, 1.0f, "Configure green color for enchantments");
enchantment_color_blue = config.getFloat("EnchantmentColorBlue", Configuration.CATEGORY_GENERAL, 0.608f, 0.0f, 1.0f, "Configure blue color for enchantments"); enchantment_color_blue = config.getFloat("EnchantmentColorBlue", Configuration.CATEGORY_GENERAL, 0.608f, 0.0f, 1.0f, "Configure blue color for enchantments");
corrupt_faction = config.getString("CorruptFaction", Configuration.CATEGORY_GENERAL, "MORDOR", "Configure the alignment the Corrupt npcs follow"); corrupt_faction = config.getString("CorruptFaction", Configuration.CATEGORY_GENERAL, "UTUMNO", "Configure the alignment the Corrupt npcs follow");
skeleton_faction = config.getString("SkeletonFaction", Configuration.CATEGORY_GENERAL, "UTUMNO", "Configure the alignment the Skeleton npcs follow");
objective_lindon = config.getBoolean("Lindon", Configuration.CATEGORY_GENERAL, false, "set true if Lindon Objective Complete"); objective_lindon = config.getBoolean("Lindon", Configuration.CATEGORY_GENERAL, false, "set true if Lindon Objective Complete");
objective_arnor = config.getBoolean("Arnor", Configuration.CATEGORY_GENERAL, false,"set true if Arnor Objective Complete"); objective_arnor = config.getBoolean("Arnor", Configuration.CATEGORY_GENERAL, false,"set true if Arnor Objective Complete");

@ -42,12 +42,15 @@ public class CorruptSkeleton extends CorruptMan {
@Override @Override
public LOTRFaction getFaction() { public LOTRFaction getFaction() {
/**
* ok doesnt work, will need an alternative, maybe a new method
if (hiredNPCInfo.getHiringPlayer() != null) { if (hiredNPCInfo.getHiringPlayer() != null) {
if (LOTRLevelData.getData(hiredNPCInfo.getHiringPlayer()).getPledgeFaction() != null) { if (LOTRLevelData.getData(hiredNPCInfo.getHiringPlayer()).getPledgeFaction() != null) {
return LOTRFaction.valueOf(String.valueOf(LOTRLevelData.getData(hiredNPCInfo.getHiringPlayer()).getPledgeFaction())); return LOTRFaction.valueOf(String.valueOf(LOTRLevelData.getData(hiredNPCInfo.getHiringPlayer()).getPledgeFaction()));
} }
} }
return LOTRFaction.valueOf(CinderLoE_Config.corrupt_faction); */
return LOTRFaction.valueOf(CinderLoE_Config.skeleton_faction);
} }
@Override @Override

Loading…
Cancel
Save