aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/location/MinesHandler.java
diff options
context:
space:
mode:
authorErymanthus <erymanthus@erymant6inchmbp.lan>2022-06-13 13:45:31 -0400
committerErymanthus <erymanthus@erymant6inchmbp.lan>2022-06-13 13:45:31 -0400
commit7d45d49c8923ccc52439cf6d0faeb4b6eea70fe6 (patch)
tree7f3bf032524739db268c8abd16ac1309111ff734 /src/main/java/com/thatgravyboat/skyblockhud/location/MinesHandler.java
parentcf6cc3dc201356a9f962d3d856121051a29e2bb5 (diff)
downloadSkyblockHud-Death-Defied-7d45d49c8923ccc52439cf6d0faeb4b6eea70fe6.tar.gz
SkyblockHud-Death-Defied-7d45d49c8923ccc52439cf6d0faeb4b6eea70fe6.tar.bz2
SkyblockHud-Death-Defied-7d45d49c8923ccc52439cf6d0faeb4b6eea70fe6.zip
i think i added mithril gourmand support or smth
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/location/MinesHandler.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/location/MinesHandler.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/location/MinesHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/location/MinesHandler.java
index ebde7db..1410385 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/location/MinesHandler.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/location/MinesHandler.java
@@ -21,7 +21,8 @@ public class MinesHandler {
TICKET(107, "Raffle", true, true),
GOBLIN(99, "Goblin Raid", true, true),
WIND(0, "Gone With The Wind", false, false),
- TOGETHER(171, "Better Together", false, true);
+ TOGETHER(171, "Better Together", false, true),
+ GOURMAND(179, "Mithril Gourmand", true, true);
public int x;
public String displayName;
@@ -104,6 +105,8 @@ public class MinesHandler {
MinesHandler.currentEvent = Event.TICKET;
} else if (event.formattedLine.toLowerCase().contains("goblin raid")) {
MinesHandler.currentEvent = Event.GOBLIN;
+ } else if (event.formattedLine.toLowerCase().contains("mithril gourmand")) {
+ MinesHandler.currentEvent = Event.GOURMAND;
}
}
if (event.formattedLine.equalsIgnoreCase("wind compass")) {
@@ -137,6 +140,16 @@ public class MinesHandler {
eventProgress = Integer.parseInt(event.formattedLine.toLowerCase().replace("your kills:", "").trim());
} catch (Exception ignored) {}
}
+ } else if (MinesHandler.currentEvent == Event.GOURMAND) {
+ if (event.formattedLine.toLowerCase().contains("remaining:")) {
+ try {
+ eventMax = Integer.parseInt(event.formattedLine.toLowerCase().replace("tasty mithril", "").replace("remaining:", "").trim());
+ } catch (Exception ignored) {}
+ } else if (event.formattedLine.toLowerCase().contains("your tasty mithril:") && !event.formattedLine.toLowerCase().contains("(")) {
+ try {
+ eventProgress = Integer.parseInt(event.formattedLine.toLowerCase().replace("tasty mithril:", "").trim());
+ } catch (Exception ignored) {}
+ }
}
}
}