diff options
author | Kevin <92656833+kevinthegreat1@users.noreply.github.com> | 2024-04-19 18:06:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 18:06:46 -0400 |
commit | 89039bbfbc4d186e97c1fee6eb809d75b4e4bd3a (patch) | |
tree | e6126a48b9526eeeb96cb88d6a213edec5969f28 /src/main/java/de/hysky/skyblocker/skyblock/dungeon/DungeonBoss.java | |
parent | fac81da70944ac33f4c8d095445da1f04e3db76a (diff) | |
download | Skyblocker-89039bbfbc4d186e97c1fee6eb809d75b4e4bd3a.tar.gz Skyblocker-89039bbfbc4d186e97c1fee6eb809d75b4e4bd3a.tar.bz2 Skyblocker-89039bbfbc4d186e97c1fee6eb809d75b4e4bd3a.zip |
Prevent teammates glow during Livid (#652)
Add DungeonBoss and prevent teammates glow during Livid
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dungeon/DungeonBoss.java')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/dungeon/DungeonBoss.java | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dungeon/DungeonBoss.java b/src/main/java/de/hysky/skyblocker/skyblock/dungeon/DungeonBoss.java new file mode 100644 index 00000000..2c26959a --- /dev/null +++ b/src/main/java/de/hysky/skyblocker/skyblock/dungeon/DungeonBoss.java @@ -0,0 +1,47 @@ +package de.hysky.skyblocker.skyblock.dungeon; + +import java.util.Arrays; +import java.util.Map; +import java.util.function.Function; +import java.util.stream.Collectors; + +public enum DungeonBoss { + NONE(-1, ""), + BONZO(1, "[BOSS] Bonzo: Gratz for making it this far, but I'm basically unbeatable."), + SCARF(2, "[BOSS] Scarf: This is where the journey ends for you, Adventurers."), + PROFESSOR(3, "[BOSS] The Professor: I was burdened with terrible news recently..."), + THORN(4, "[BOSS] Thorn: Welcome Adventurers! I am Thorn, the Spirit! And host of the Vegan Trials!"), + LIVID(5, "[BOSS] Livid: Welcome, you've arrived right on time. I am Livid, the Master of Shadows."), + SADAN(6, "[BOSS] Sadan: So you made it all the way here... Now you wish to defy me? Sadan?!"), + MAXOR(7, "[BOSS] Maxor: WELL! WELL! WELL! LOOK WHO'S HERE!"); + + private static final Map<String, DungeonBoss> BOSSES = Arrays.stream(values()).collect(Collectors.toUnmodifiableMap(DungeonBoss::message, Function.identity())); + + private final int floor; + private final String message; + + DungeonBoss(int floor, String message) { + this.floor = floor; + this.message = message; + } + + public int floor() { + return floor; + } + + public String message() { + return message; + } + + public boolean isInBoss() { + return this != NONE; + } + + public boolean isFloor(int floor) { + return this.floor == floor; + } + + public static DungeonBoss fromMessage(String message) { + return BOSSES.getOrDefault(message, NONE); + } +} |