diff options
author | Alexia <me@alexia.lol> | 2024-02-27 18:07:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 18:07:29 +0100 |
commit | 59d47ebac12a31ba327862805ec9fa98a626fe0f (patch) | |
tree | c88307a9956a6b931734d99441e2a4cf10d15cca /src/main | |
parent | 7cfe68da3ba7840a03f4ec4b0e5f7742b5e2ca9a (diff) | |
download | skyhanni-59d47ebac12a31ba327862805ec9fa98a626fe0f.tar.gz skyhanni-59d47ebac12a31ba327862805ec9fa98a626fe0f.tar.bz2 skyhanni-59d47ebac12a31ba327862805ec9fa98a626fe0f.zip |
Talbot's Theodolite: Support exact height message. #1068
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt | 9 |
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() |