diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-03 23:01:57 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-03 23:01:57 +0100 |
commit | 09c79e6e9c38c651f297c2aff9907d425c5179f2 (patch) | |
tree | b132ad08ea3b18387175a414594ee9d88de1fdd7 /src/main | |
parent | e44f6e77e0b0835a1f6def677dba87907a5eb1aa (diff) | |
download | skyhanni-09c79e6e9c38c651f297c2aff9907d425c5179f2.tar.gz skyhanni-09c79e6e9c38c651f297c2aff9907d425c5179f2.tar.bz2 skyhanni-09c79e6e9c38c651f297c2aff9907d425c5179f2.zip |
Added bingo next step support for skill quests (alchemy 12)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt index f3d29efcb..35d318652 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt @@ -218,6 +218,13 @@ class BingoNextStepHelper { val crystal = crystalMatcher.group(1) ChatMessageStep("Obtain a $crystal Crystal").apply { finalSteps.add(this) } requires IslandType.CRYSTAL_HOLLOWS.getStep() } + val pattern = Pattern.compile("Obtain level (.*) in the (.*) Skill.") + val matcher = pattern.matcher(description) + if (matcher.matches()) { + val level = matcher.group(1).toInt() + val skillName = matcher.group(2) + SkillLevelStep(skillName, level).apply { finalSteps.add(this) } + } println("No help for goal: '$description'") } |