From 6c19d8e279079879e065e586ee5cc86e7ef74b70 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 7 Jan 2024 21:42:47 +0100 Subject: only show debug when necessary --- .../skyhanni/features/bingo/MinionCraftHelper.kt | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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) } -- cgit