aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat
diff options
context:
space:
mode:
authorErymanthus <erymanthus@erymant6inchmbp.lan>2022-06-13 14:48:01 -0400
committerErymanthus <erymanthus@erymant6inchmbp.lan>2022-06-13 14:48:01 -0400
commitae4f3e965f4bab7011bb1886b50d6f0614a43edb (patch)
treeb45325d348785e1057f7d286de707f3c1c75b674 /src/main/java/com/thatgravyboat
parentfec7136691f376bf6513ca2b4d52044ec3c99e4a (diff)
downloadSkyblockHud-Death-Defied-ae4f3e965f4bab7011bb1886b50d6f0614a43edb.tar.gz
SkyblockHud-Death-Defied-ae4f3e965f4bab7011bb1886b50d6f0614a43edb.tar.bz2
SkyblockHud-Death-Defied-ae4f3e965f4bab7011bb1886b50d6f0614a43edb.zip
cmon gravy, seriously? u had all these worthless prefixes in here?
Diffstat (limited to 'src/main/java/com/thatgravyboat')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/handlers/SlayerHandler.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/handlers/SlayerHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/handlers/SlayerHandler.java
index bf5dfdc..586023a 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/handlers/SlayerHandler.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/handlers/SlayerHandler.java
@@ -69,15 +69,15 @@ public class SlayerHandler {
String line = event.scores.get(i);
if (line.contains("Slayer Quest") && event.scores.size() > 3) {
String slayer = event.scores.get(i - 1).toLowerCase();
- SlayerHandler.slayerTypes selectedSlayer = SlayerHandler.slayerTypes.NONE;
+ slayerTypes selectedSlayer = slayerTypes.NONE;
for (slayerTypes types : slayerTypes.values()) {
if (slayer.contains(types.displayName.toLowerCase(Locale.ENGLISH))) {
selectedSlayer = types;
break;
}
}
- SlayerHandler.currentSlayer = selectedSlayer;
- SlayerHandler.slayerTier = Utils.whatRomanNumeral(slayer.replace(selectedSlayer.getDisplayName().toLowerCase(), "").replace(" ", ""));
+ currentSlayer = selectedSlayer;
+ slayerTier = Utils.whatRomanNumeral(slayer.replace(selectedSlayer.getDisplayName().toLowerCase(), "").replace(" ", ""));
break;
}
}
@@ -97,8 +97,8 @@ public class SlayerHandler {
Matcher killMatcher = KILLS_REGEX.matcher(line);
if (killMatcher.find()) {
- SlayerHandler.bossSlain = false;
- SlayerHandler.isKillingBoss = false;
+ bossSlain = false;
+ isKillingBoss = false;
try {
progress = Integer.parseInt(killMatcher.group(1));
} catch (Exception ignored) {}
@@ -106,15 +106,15 @@ public class SlayerHandler {
maxKills = Integer.parseInt(killMatcher.group(2));
} catch (Exception ignored) {}
} else if (line.contains("slay the boss")) {
- SlayerHandler.bossSlain = false;
- SlayerHandler.isKillingBoss = true;
- SlayerHandler.maxKills = 0;
- SlayerHandler.progress = 0;
+ bossSlain = false;
+ isKillingBoss = true;
+ maxKills = 0;
+ progress = 0;
} else if (line.contains("boss slain")) {
- SlayerHandler.isKillingBoss = false;
- SlayerHandler.maxKills = 0;
- SlayerHandler.progress = 0;
- SlayerHandler.bossSlain = true;
+ isKillingBoss = false;
+ maxKills = 0;
+ progress = 0;
+ bossSlain = true;
}
}
}