diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-08 12:00:35 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-08 12:00:35 +0200 |
commit | 22b8af50f2cea3c38396726ca45a20933c585089 (patch) | |
tree | a773113d1f578d3749dd19bd7a8e9187f60e7353 /src | |
parent | c99dfe1b340b8dcb27c3df0b899d0ebd163b65fd (diff) | |
download | skyhanni-22b8af50f2cea3c38396726ca45a20933c585089.tar.gz skyhanni-22b8af50f2cea3c38396726ca45a20933c585089.tar.bz2 skyhanni-22b8af50f2cea3c38396726ca45a20933c585089.zip |
very impactful change
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/TestCopyRngMeterValues.kt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/TestCopyRngMeterValues.kt b/src/main/java/at/hannibal2/skyhanni/test/TestCopyRngMeterValues.kt index b243c9991..a556a7254 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/TestCopyRngMeterValues.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/TestCopyRngMeterValues.kt @@ -3,9 +3,10 @@ package at.hannibal2.skyhanni.test import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.config.ConfigManager import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent -import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName_old +import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.LorenzUtils +import at.hannibal2.skyhanni.utils.NEUInternalName import at.hannibal2.skyhanni.utils.NumberUtil.formatNumber import at.hannibal2.skyhanni.utils.OSUtils import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher @@ -17,16 +18,16 @@ object TestCopyRngMeterValues { fun onInventoryOpen(event: InventoryFullyOpenedEvent) { if (!SkyHanniMod.feature.dev.copyRngMeter) return - val map = mutableMapOf<String, Long>() + val map = mutableMapOf<NEUInternalName, Long>() val slayerPattern = "§7Slayer XP: §d.*§5/§d(?<xp>.*)".toPattern() val dungeonPattern = "§7Dungeon Score: §d.*§5/§d(?<xp>.*)".toPattern() for (item in event.inventoryItems.values) { for (line in item.getLore()) { slayerPattern.matchMatcher(line) { - map[item.getInternalName_old()] = group("xp").formatNumber() + map[item.getInternalName()] = group("xp").formatNumber() } dungeonPattern.matchMatcher(line) { - map[item.getInternalName_old()] = group("xp").formatNumber() + map[item.getInternalName()] = group("xp").formatNumber() } } } |