From 9cc82a76ba53ad11b57791695e5ee58514176539 Mon Sep 17 00:00:00 2001 From: KeyLime17 Date: Wed, 9 Apr 2025 16:22:01 -0400 Subject: [PATCH] temporary workaround for skeletons --- src/main/java/com/zivilon/cinder_loe/CinderLoE_Config.java | 4 +++- .../zivilon/cinder_loe/entity/corrupt/CorruptSkeleton.java | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zivilon/cinder_loe/CinderLoE_Config.java b/src/main/java/com/zivilon/cinder_loe/CinderLoE_Config.java index dd81b1a..d8639bf 100644 --- a/src/main/java/com/zivilon/cinder_loe/CinderLoE_Config.java +++ b/src/main/java/com/zivilon/cinder_loe/CinderLoE_Config.java @@ -13,6 +13,7 @@ public class CinderLoE_Config { public static float enchantment_color_green; public static float enchantment_color_blue; public static String corrupt_faction; + public static String skeleton_faction; public static boolean objective_lindon; 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_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_arnor = config.getBoolean("Arnor", Configuration.CATEGORY_GENERAL, false,"set true if Arnor Objective Complete"); diff --git a/src/main/java/com/zivilon/cinder_loe/entity/corrupt/CorruptSkeleton.java b/src/main/java/com/zivilon/cinder_loe/entity/corrupt/CorruptSkeleton.java index 79d2b9c..fadbf8c 100644 --- a/src/main/java/com/zivilon/cinder_loe/entity/corrupt/CorruptSkeleton.java +++ b/src/main/java/com/zivilon/cinder_loe/entity/corrupt/CorruptSkeleton.java @@ -42,12 +42,15 @@ public class CorruptSkeleton extends CorruptMan { @Override public LOTRFaction getFaction() { + /** + * ok doesnt work, will need an alternative, maybe a new method if (hiredNPCInfo.getHiringPlayer() != null) { if (LOTRLevelData.getData(hiredNPCInfo.getHiringPlayer()).getPledgeFaction() != null) { 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