aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-10-01 19:56:51 +1100
committerGitHub <noreply@github.com>2023-10-01 10:56:51 +0200
commit06450f7f801428be2ca92ed124717ea5a00c7241 (patch)
tree0f1ce9c343b1b0167528da4b09eae3167801397e /src/main/java/at
parent63e46cf67a44e965c87e597f7be16989bc1d80b6 (diff)
downloadskyhanni-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.kt8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/FFStats.kt1
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>()