diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-10-01 19:56:51 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-01 10:56:51 +0200 |
commit | 06450f7f801428be2ca92ed124717ea5a00c7241 (patch) | |
tree | 0f1ce9c343b1b0167528da4b09eae3167801397e /src/main/java/at | |
parent | 63e46cf67a44e965c87e597f7be16989bc1d80b6 (diff) | |
download | skyhanni-06450f7f801428be2ca92ed124717ea5a00c7241.tar.gz skyhanni-06450f7f801428be2ca92ed124717ea5a00c7241.tar.bz2 skyhanni-06450f7f801428be2ca92ed124717ea5a00c7241.zip |
Fix: Subtraction (#522)
Fixed /ff not detecting changes in the /pets inventory. #522
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt | 8 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FFStats.kt | 1 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt index b1e531329..9d8544b0c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt @@ -129,10 +129,10 @@ class CaptureFarmingGear { } // setting to current saved level -1 to stop later pages saving low rarity pets - var highestElephantRarity = ItemUtils.getPetRarityOld(farmingItems[FarmingItems.ELEPHANT]) - var highestMooshroomRarity = ItemUtils.getPetRarityOld(farmingItems[FarmingItems.MOOSHROOM_COW]) - var highestRabbitRarity = ItemUtils.getPetRarityOld(farmingItems[FarmingItems.RABBIT]) - var highestBeeRarity = ItemUtils.getPetRarityOld(farmingItems[FarmingItems.BEE]) + var highestElephantRarity = ItemUtils.getPetRarityOld(farmingItems[FarmingItems.ELEPHANT]) - 1 + var highestMooshroomRarity = ItemUtils.getPetRarityOld(farmingItems[FarmingItems.MOOSHROOM_COW]) - 1 + var highestRabbitRarity = ItemUtils.getPetRarityOld(farmingItems[FarmingItems.RABBIT]) - 1 + var highestBeeRarity = ItemUtils.getPetRarityOld(farmingItems[FarmingItems.BEE]) - 1 for ((_, item) in event.inventoryItems) { val split = item.getInternalName_old().split(";") diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FFStats.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FFStats.kt index e10a8f831..dbd5f00c5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FFStats.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FFStats.kt @@ -26,7 +26,6 @@ object FFStats { var cakeExpireTime = 0L - // todo maybe these could be maps val necklaceFF = mutableMapOf<FFTypes, Double>() val cloakFF = mutableMapOf<FFTypes, Double>() val beltFF = mutableMapOf<FFTypes, Double>() |