aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-04 01:30:17 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-04 01:30:17 +0100
commitb1b7a884552afef87727bfd68cc982ae17308bea (patch)
tree8d61d157f4f618d955df4ec1da156bde18a98c66 /src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
parent6eab582513f0cf275bf467938a56771f35c8aa1d (diff)
downloadskyhanni-b1b7a884552afef87727bfd68cc982ae17308bea.tar.gz
skyhanni-b1b7a884552afef87727bfd68cc982ae17308bea.tar.bz2
skyhanni-b1b7a884552afef87727bfd68cc982ae17308bea.zip
Fixed garden visitor problems with mushroom, enchanted cactus green, enchanted golden carrot and enchanted cookie
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
index 5b7e33592..72bffdc46 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
@@ -114,7 +114,32 @@ object NEUItems {
val map = mutableMapOf<String, Int>()
for (ingredient in recipe.ingredients) {
val count = ingredient.count.toInt()
- val internalItemId = ingredient.internalItemId
+ var internalItemId = ingredient.internalItemId
+ // ignore cactus green
+ if (rawId == "ENCHANTED_CACTUS_GREEN") {
+ if (internalItemId == "INK_SACK-2") {
+ internalItemId = "CACTUS"
+ }
+ }
+
+ // ignore wheat in enchanted cookie
+ if (rawId == "ENCHANTED_COOKIE") {
+ if (internalItemId == "WHEAT") {
+ continue
+ }
+ }
+
+ // ignore golden carrot in enchanted golden carrot
+ if (rawId == "ENCHANTED_GOLDEN_CARROT") {
+ if (internalItemId == "GOLDEN_CARROT") {
+ continue
+ }
+ }
+
+// println("")
+// println("rawId: $rawId")
+// println("internalItemId: $internalItemId")
+
val old = map.getOrDefault(internalItemId, 0)
map[internalItemId] = old + count
}