From 3c63e64faba2664ff1f75a6ef5156e2b7303ddba Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:09:30 +0100 Subject: romanToDecimalIfNeeded -> romanToDecimalIfNecessary (See https://chat.openai.com/share/502571b5-8851-4047-b343-3b1475ca8a88) --- .../java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt | 4 ++-- .../hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon') diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt index 8bbf2a015..2840565df 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt @@ -16,7 +16,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils.addOrPut import at.hannibal2.skyhanni.utils.LorenzUtils.equalsOneOf import at.hannibal2.skyhanni.utils.LorenzUtils.getOrNull import at.hannibal2.skyhanni.utils.NumberUtil.formatNumber -import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimalIfNeeded +import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimalIfNecessary import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher import at.hannibal2.skyhanni.utils.StringUtils.removeColor import at.hannibal2.skyhanni.utils.TabListData @@ -115,7 +115,7 @@ class DungeonAPI { DungeonClass.entries.forEach { if (playerTeam.contains("(${it.scoreboardName} ")) { - val level = playerTeam.split(" ").last().trimEnd(')').romanToDecimalIfNeeded() + val level = playerTeam.split(" ").last().trimEnd(')').romanToDecimalIfNecessary() playerClass = it playerClassLevel = level } diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt index b824bc6a5..f21274a02 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt @@ -11,7 +11,7 @@ import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.ItemUtils.name import at.hannibal2.skyhanni.utils.LorenzColor import at.hannibal2.skyhanni.utils.LorenzUtils -import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimalIfNeeded +import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimalIfNecessary import at.hannibal2.skyhanni.utils.RenderUtils.highlight import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher import at.hannibal2.skyhanni.utils.StringUtils.removeColor @@ -47,11 +47,11 @@ class DungeonFinderFeatures { } else if (itemName == "Entrance") { event.stackTip = "E" } else if (itemName.startsWith("Floor ")) { - event.stackTip = itemName.split(' ').last().romanToDecimalIfNeeded().toString() + event.stackTip = itemName.split(' ').last().romanToDecimalIfNecessary().toString() } } else if (itemName.startsWith("The Catacombs - ") || itemName.startsWith("MM Catacombs -")) { val floor = itemName.split(" - ").last().removeColor() - val floorNum = floor.split(' ').last().romanToDecimalIfNeeded().toString() + val floorNum = floor.split(' ').last().romanToDecimalIfNecessary().toString() val isMasterMode = itemName.contains("MM ") event.stackTip = if (floor.contains("Entrance")) { @@ -64,7 +64,7 @@ class DungeonFinderFeatures { } else if (itemName.endsWith("'s Party")) { val floor = event.stack.getLore().find { it.startsWith("§7Floor: ") } ?: return val dungeon = event.stack.getLore().find { it.startsWith("§7Dungeon: ") } ?: return - val floorNum = floor.split(' ').last().romanToDecimalIfNeeded().toString() + val floorNum = floor.split(' ').last().romanToDecimalIfNecessary().toString() val isMasterMode = dungeon.contains("Master Mode") event.stackTip = if (floor.contains("Entrance")) { -- cgit