Skip to content

Commit

Permalink
Talbot's Theodolite: Support exact height message. hannibal002#1068
Browse files Browse the repository at this point in the history
  • Loading branch information
qtlunya authored Feb 27, 2024
1 parent 7cfe68d commit 59d47eb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>.*)"
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 59d47eb

Please sign in to comment.