aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-08-16 11:17:59 +0200
committerGitHub <noreply@github.com>2024-08-16 11:17:59 +0200
commitbdbac36d82003c8789a57b8d45ea818e5a2e8079 (patch)
treebffca5581570bf2cc1fdd40f7714f57f626dca4b
parenta40a0f52410d2caf5901c666431851640e0ba542 (diff)
downloadskyhanni-bdbac36d82003c8789a57b8d45ea818e5a2e8079.tar.gz
skyhanni-bdbac36d82003c8789a57b8d45ea818e5a2e8079.tar.bz2
skyhanni-bdbac36d82003c8789a57b8d45ea818e5a2e8079.zip
Fix: Pet detection (#2358)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt
index 5f630335b..8af24175f 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt
@@ -89,6 +89,7 @@ object PestProfitTracker {
val internalName = NEUInternalName.fromItemNameOrNull(group("item")) ?: return
tracker.addItem(internalName, 1)
+ addKill()
// pests always have guaranteed loot, therefore there's no need to add kill here
}
}
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
index 296439939..5d63993d1 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
@@ -139,8 +139,9 @@ object NEUItems {
var name = manager.createItem(rawInternalName).displayName.lowercase()
val internalName = rawInternalName.asInternalName()
- // TODO remove one of them once neu is consistent
+ // TODO remove all except one of them once neu is consistent
name = name.removePrefix("§f§f§7[lvl 1➡100] ")
+ name = name.removePrefix("§f§f§7[lvl {lvl}] ")
name = name.removePrefix("§7[lvl 1➡100] ")
if (name.contains("[lvl 1➡100]")) {