aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/dungeons
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-07-06 17:24:20 -0400
committerTymanWasTaken <tyman@tyman.tech>2021-07-06 17:24:20 -0400
commit98ee5a2ae8090c061b1e61e7955d793416991822 (patch)
treee34bb84ed247f08f2931f10d1dfbf6c8b883004c /src/main/java/com/thatgravyboat/skyblockhud/dungeons
parentc04ca523f9fb9f7adefa74587db61f76deeae9f0 (diff)
downloadSkyblockHud-Death-Defied-98ee5a2ae8090c061b1e61e7955d793416991822.tar.gz
SkyblockHud-Death-Defied-98ee5a2ae8090c061b1e61e7955d793416991822.tar.bz2
SkyblockHud-Death-Defied-98ee5a2ae8090c061b1e61e7955d793416991822.zip
140?
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/dungeons')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/dungeons/DungeonHandler.java25
1 files changed, 4 insertions, 21 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/dungeons/DungeonHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/dungeons/DungeonHandler.java
index 4fd0fd4..aff9c1e 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/dungeons/DungeonHandler.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/dungeons/DungeonHandler.java
@@ -56,12 +56,7 @@ public class DungeonHandler {
healthNum = Integer.parseInt(health);
} catch (NumberFormatException ignored) {}
}
- DungeonPlayer player = new DungeonPlayer(
- playerClass,
- displayName,
- healthNum,
- health.equalsIgnoreCase("dead")
- );
+ DungeonPlayer player = new DungeonPlayer(playerClass, displayName, healthNum, health.equalsIgnoreCase("dead"));
dungeonPlayersMap.put(displayName.toLowerCase(), player);
}
}
@@ -82,12 +77,7 @@ public class DungeonHandler {
public static void checkForDungeonCleared(String scoreline) {
if (scoreline.toLowerCase().trim().contains("dungeon cleared:")) {
- String dungeonClearedText = scoreline
- .toLowerCase()
- .trim()
- .replace("dungeon cleared:", "")
- .replace(" ", "")
- .replace("%", "");
+ String dungeonClearedText = scoreline.toLowerCase().trim().replace("dungeon cleared:", "").replace(" ", "").replace("%", "");
try {
dungeonCleared = Integer.parseInt(dungeonClearedText);
} catch (NumberFormatException ignored) {}
@@ -96,12 +86,7 @@ public class DungeonHandler {
public static void checkForDungeonKeys(String scoreline, String rawString) {
if (scoreline.toLowerCase().trim().contains("keys:")) {
- String dungeonClearedText = scoreline
- .toLowerCase()
- .trim()
- .replace("keys:", "")
- .replace(" ", "")
- .replace("x", "");
+ String dungeonClearedText = scoreline.toLowerCase().trim().replace("keys:", "").replace(" ", "").replace("x", "");
bloodKey = rawString.contains("\u2713");
try {
witherKeys = Integer.parseInt(dungeonClearedText);
@@ -130,9 +115,7 @@ public class DungeonHandler {
public static void parseTotalSecrets(String playerName) {
if (playerName.toLowerCase().contains("secrets found:")) {
- String totalSecret = Utils
- .removeColor(playerName.toLowerCase().replace("secrets found:", ""))
- .replace(" ", "");
+ String totalSecret = Utils.removeColor(playerName.toLowerCase().replace("secrets found:", "")).replace(" ", "");
try {
totalSecrets = Integer.parseInt(totalSecret);
} catch (NumberFormatException ignored) {}