diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-19 12:04:07 +0100 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-19 12:04:07 +0100 |
| commit | 6bdcc845e8397041c44b5271af245597caf26353 (patch) | |
| tree | 930b55b5506c38e1468290ac3976ee4378e98506 /src/main/java/at/hannibal2/skyhanni/features/misc | |
| parent | 4593b26296282c85a850b70aab196731247e11e6 (diff) | |
| download | skyhanni-6bdcc845e8397041c44b5271af245597caf26353.tar.gz skyhanni-6bdcc845e8397041c44b5271af245597caf26353.tar.bz2 skyhanni-6bdcc845e8397041c44b5271af245597caf26353.zip | |
Replaced all logErrorState to logErrorStateWithData
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt index 7d8f3c010..93edf2416 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt @@ -198,11 +198,14 @@ object EstimatedItemValueCalculator { itemRarity = LorenzRarity.LEGENDARY } else { if (stack.isRecombobulated()) { - val oneBelow = itemRarity.oneBelow() + val oneBelow = itemRarity.oneBelow(logError = false) if (oneBelow == null) { - ErrorManager.logErrorState( + ErrorManager.logErrorStateWithData( "Wrong item rarity detected in estimated item value for item ${stack.name}", - "Recombobulated item is common: ${stack.getInternalName()}, name:${stack.name}" + "Recombobulated item is common", + "internal name" to stack.getInternalName(), + "itemRarity" to itemRarity, + "item name" to stack.name, ) return null } @@ -212,9 +215,16 @@ object EstimatedItemValueCalculator { val rarityName = itemRarity.name if (!reforgeCosts.has(rarityName)) { val reforgesFound = reforgeCosts.entrySet().map { it.key } - ErrorManager.logErrorState( - "Can not calculate reforge cost for item ${stack.name}", - "item rarity '$itemRarity' is not in NEU repo reforge cost for reforge stone$reforgeStone ($reforgesFound)" + ErrorManager.logErrorStateWithData( + "Could not calculate reforge cost for item ${stack.name}", + "Item not in NEU repo reforge cost", + "rarityName" to rarityName, + "reforgeCosts" to reforgeCosts, + "itemRarity" to itemRarity, + "reforgesFound" to reforgesFound, + "internal name" to stack.getInternalName(), + "item name" to stack.name, + "reforgeStone" to reforgeStone, ) return null } @@ -633,9 +643,12 @@ object EstimatedItemValueCalculator { if (EstimatedItemValue.gemstoneUnlockCosts.isEmpty()) return 0.0 if (internalName !in EstimatedItemValue.gemstoneUnlockCosts) { - ErrorManager.logErrorState( + ErrorManager.logErrorStateWithData( "Could not find gemstone slot price for ${stack.name}", - "EstimatedItemValue has no gemstoneUnlockCosts for $internalName" + "EstimatedItemValue has no gemstoneUnlockCosts for $internalName", + "internal name" to internalName, + "gemstoneUnlockCosts" to EstimatedItemValue.gemstoneUnlockCosts, + "item name" to stack.name, ) return 0.0 } |
