diff options
author | Erymanthus <raydeeux@gmail.com> | 2022-06-13 15:06:10 -0400 |
---|---|---|
committer | Erymanthus <raydeeux@gmail.com> | 2022-06-13 15:06:10 -0400 |
commit | c7ffe6cd4691df6e1b87116970f06c556674f662 (patch) | |
tree | 5899ead11aa4787d50b8e25adc0742922650baec /src/main/java/com/thatgravyboat/skyblockhud/location | |
parent | e745a7ca7a2e0cf5da6ff71845167533cfb0619d (diff) | |
download | SkyblockHud-Death-Defied-c7ffe6cd4691df6e1b87116970f06c556674f662.tar.gz SkyblockHud-Death-Defied-c7ffe6cd4691df6e1b87116970f06c556674f662.tar.bz2 SkyblockHud-Death-Defied-c7ffe6cd4691df6e1b87116970f06c556674f662.zip |
crimson isle boss groundwork
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/location')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/location/CrimsonIsleHandler.java | 56 |
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; + } +} |