aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorAlexia <me@alexia.lol>2024-02-27 18:07:29 +0100
committerGitHub <noreply@github.com>2024-02-27 18:07:29 +0100
commit59d47ebac12a31ba327862805ec9fa98a626fe0f (patch)
treec88307a9956a6b931734d99441e2a4cf10d15cca /src/main/java/at/hannibal2/skyhanni
parent7cfe68da3ba7840a03f4ec4b0e5f7742b5e2ca9a (diff)
downloadskyhanni-59d47ebac12a31ba327862805ec9fa98a626fe0f.tar.gz
skyhanni-59d47ebac12a31ba327862805ec9fa98a626fe0f.tar.bz2
skyhanni-59d47ebac12a31ba327862805ec9fa98a626fe0f.zip
Talbot's Theodolite: Support exact height message. #1068
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt
index 8f4e7ddef..d47abd7c1 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt
@@ -58,6 +58,10 @@ object TrevorFeatures {
"below",
"The target is around (?<height>.*) blocks below, at a (?<angle>.*) degrees angle!"
)
+ private val talbotPatternAt by patternGroup.pattern(
+ "at",
+ "You are at the exact height!",
+ )
private val locationPattern by patternGroup.pattern(
"zone",
"Zone: (?<zone>.*)"
@@ -138,6 +142,11 @@ object TrevorFeatures {
val height = group("height").toInt()
TrevorSolver.findMobHeight(height, false)
}
+ talbotPatternAt.matchMatcher(formattedMessage) {
+ val thePlayer = Minecraft.getMinecraft().thePlayer ?: return
+ val height = thePlayer.posY
+ TrevorSolver.averageHeight = height
+ }
if (formattedMessage == "[NPC] Trevor: You will have 10 minutes to find the mob from when you accept the task.") {
teleportBlock = SimpleTimeMark.now()