aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-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()