aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-19 22:08:48 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-19 22:08:48 +0100
commit6639173b3865e86981a5a02f0fe22e62ae6c8a6c (patch)
tree0e4935814404231985e11383a3853e33fef636e9 /src
parentb8fd0617f3debc9445693bad3289c102e880879c (diff)
downloadskyhanni-6639173b3865e86981a5a02f0fe22e62ae6c8a6c.tar.gz
skyhanni-6639173b3865e86981a5a02f0fe22e62ae6c8a6c.tar.bz2
skyhanni-6639173b3865e86981a5a02f0fe22e62ae6c8a6c.zip
Removed message if no wrong crop milestone steps are found
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestonesFix.kt30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestonesFix.kt b/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestonesFix.kt
index c1f2c32f3..cad8fdddf 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestonesFix.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestonesFix.kt
@@ -44,8 +44,8 @@ object GardenCropMilestonesFix {
"Please share it on the §bSkyHanni Discord §ein the channel §b#share-data§e."
)
OSUtils.copyToClipboard("```${data.joinToString("\n")}```")
- } else {
- LorenzUtils.chat("No wrong crop milestone steps found!")
+// } else {
+// LorenzUtils.chat("No wrong crop milestone steps found!")
}
}
@@ -62,39 +62,39 @@ object GardenCropMilestonesFix {
val next = lore.nextAfter({ GardenCropMilestones.totalPattern.matches(it) }, 3) ?: return
val total = lore.nextAfter({ GardenCropMilestones.totalPattern.matches(it) }, 6) ?: return
- debug(" ")
- debug("crop: $crop")
- debug("realTier: $realTier")
+// debug(" ")
+// debug("crop: $crop")
+// debug("realTier: $realTier")
val guessNextMax = GardenCropMilestones.getCropsForTier(
realTier + 1,
crop
) - GardenCropMilestones.getCropsForTier(realTier, crop)
- debug("guessNextMax: ${guessNextMax.addSeparators()}")
+// debug("guessNextMax: ${guessNextMax.addSeparators()}")
val nextMax = pattern.matchMatcher(next) {
group("max").formatNumber()
} ?: return
- debug("nextMax real: ${nextMax.addSeparators()}")
+// debug("nextMax real: ${nextMax.addSeparators()}")
if (nextMax != guessNextMax) {
- debug("wrong, add to list")
+// debug("wrong, add to list")
wrongData.add("$crop:$realTier:${nextMax.addSeparators()}")
}
val guessTotalMax = GardenCropMilestones.getCropsForTier(46, crop)
- // println("guessTotalMax: ${guessTotalMax.addSeparators()}")
+// println("guessTotalMax: ${guessTotalMax.addSeparators()}")
val totalMax = pattern.matchMatcher(total) {
group("max").formatNumber()
} ?: return
- // println("totalMax real: ${totalMax.addSeparators()}")
+// println("totalMax real: ${totalMax.addSeparators()}")
val totalOffBy = guessTotalMax - totalMax
- debug("totalOffBy: $totalOffBy")
+// debug("$crop total offf by: ${totalOffBy.addSeparators()}")
}
- fun debug(message: String) {
- if (SkyHanniMod.feature.dev.debug.enabled) {
+// fun debug(message: String) {
+// if (SkyHanniMod.feature.dev.debug.enabled) {
// println(message)
- }
- }
+// }
+// }
/**
* This helps to fix wrong crop milestone data