aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/location
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/location')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/location/CrimsonIsleHandler.java56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/location/CrimsonIsleHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/location/CrimsonIsleHandler.java
new file mode 100644
index 0000000..ab10420
--- /dev/null
+++ b/src/main/java/com/thatgravyboat/skyblockhud/location/CrimsonIsleHandler.java
@@ -0,0 +1,56 @@
+package com.thatgravyboat.skyblockhud.location;
+
+public class CrimsonIsleHandler {
+
+ public enum bosses {
+ BLADESOUL("Bladesoul", 50000000),
+ MAGMABOSS("Old Dragon", 200000000),
+ MAGEOUTLAW("Wise Dragon", 70000000),
+ BARBARIANDUKEX("Unstable Dragon", 70000000),
+ ASHFANG("Young Dragon", 50000000),
+ // KUUDRABASIC("Strong Dragon", 9000000),
+ // KUUDRAHOT("Superior Dragon", 12000000),
+ // KUUDRABURNING("Superior Dragon", 12000000),
+ // KUUDRAFIERY("Superior Dragon", 12000000),
+ // KUUDRAINFERNAL("Superior Dragon", 12000000),
+ NOBOSS("", 0);
+
+ private final String displayName;
+ private final int maxHealth;
+
+ bosses(String displayName, int maxHealth) {
+ this.displayName = displayName;
+ this.maxHealth = maxHealth;
+ }
+
+ public String getDisplayName() {
+ return this.displayName;
+ }
+
+ public int getMaxHealth() {
+ return this.maxHealth;
+ }
+
+ public static bosses findBoss(String input) {
+ if (input.contains(" ")) {
+ try {
+ return bosses.valueOf(input.toLowerCase().replace(" ", "").toUpperCase());
+ } catch (IllegalArgumentException ignored) {
+ return NOBOSS;
+ }
+ } else {
+ try {
+ return bosses.valueOf(input);
+ } catch (IllegalArgumentException ignored) {
+ return NOBOSS;
+ }
+ }
+ }
+ }
+
+ private static bosses currentBoss = bosses.NOBOSS;
+
+ public static void setCurrentBoss(bosses boss) {
+ currentBoss = boss;
+ }
+}