aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-07 21:42:47 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-07 21:42:47 +0100
commit6c19d8e279079879e065e586ee5cc86e7ef74b70 (patch)
tree8b2a4a02ea43c86c840f202db931580feedbc3ac /src/main/java/at/hannibal2/skyhanni
parentc0bb4192a531827aafada9df875f7165266cee59 (diff)
downloadskyhanni-6c19d8e279079879e065e586ee5cc86e7ef74b70.tar.gz
skyhanni-6c19d8e279079879e065e586ee5cc86e7ef74b70.tar.bz2
skyhanni-6c19d8e279079879e065e586ee5cc86e7ef74b70.zip
only show debug when necessary
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt
index e3fe529fc..dd060aa9b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt
@@ -151,10 +151,11 @@ class MinionCraftHelper {
val internalName = internalId.asInternalName()
if (internalName.endsWith("_GENERATOR_1")) {
if (internalName == "REVENANT_GENERATOR_1".asInternalName() ||
- internalName == "TARANTULA_GENERATOR_1".asInternalName() ||
- internalName == "VOIDLING_GENERATOR_1".asInternalName() ||
- internalName == "INFERNO_GENERATOR_1".asInternalName() ||
- internalName == "VAMPIRE_GENERATOR_1".asInternalName()) continue
+ internalName == "TARANTULA_GENERATOR_1".asInternalName() ||
+ internalName == "VOIDLING_GENERATOR_1".asInternalName() ||
+ internalName == "INFERNO_GENERATOR_1".asInternalName() ||
+ internalName == "VAMPIRE_GENERATOR_1".asInternalName()
+ ) continue
tierOneMinions.add(internalName)
}
@@ -281,16 +282,18 @@ class MinionCraftHelper {
private fun fixTierOneMinions(data: JsonObject) {
val newList = JsonArray()
- var i = 0
+ var counter = 0
for (entry in data["tierOneMinionsDone"].asJsonArray) {
val name = entry.asString
if (!name.startsWith("INTERNALNAME:")) {
newList.add(entry)
} else {
- i++
+ counter++
}
}
- println("fixTierOneMinions: removed $i wrong entries.")
+ if (counter > 0) {
+ println("Removed $counter wrong entries in fixTierOneMinions.")
+ }
data.add("tierOneMinionsDone", newList)
}