aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-05-07 19:17:36 +1000
committerGitHub <noreply@github.com>2024-05-07 11:17:36 +0200
commit5f2c39ccb9cc4af169f7a7ee4408e38fee49fbf2 (patch)
tree0d1d1749f5d1246c7b083bb87ade9e922a4e0c57 /src
parente173bce1b3c5ed8beb61f5940b052b2956c8d554 (diff)
downloadskyhanni-5f2c39ccb9cc4af169f7a7ee4408e38fee49fbf2.tar.gz
skyhanni-5f2c39ccb9cc4af169f7a7ee4408e38fee49fbf2.tar.bz2
skyhanni-5f2c39ccb9cc4af169f7a7ee4408e38fee49fbf2.zip
Fix: Time to prestige being wrong the second after using time tower (#1726)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryDataLoader.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryDataLoader.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryDataLoader.kt
index 2f8e4dfd4..7eabb2420 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryDataLoader.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryDataLoader.kt
@@ -127,20 +127,20 @@ object ChocolateFactoryDataLoader {
val chocolateItem = InventoryUtils.getItemAtSlotIndex(ChocolateFactoryAPI.infoIndex) ?: return
val prestigeItem = InventoryUtils.getItemAtSlotIndex(ChocolateFactoryAPI.prestigeIndex) ?: return
+ val timeTowerItem = InventoryUtils.getItemAtSlotIndex(ChocolateFactoryAPI.timeTowerIndex) ?: return
val productionInfoItem = InventoryUtils.getItemAtSlotIndex(ChocolateFactoryAPI.productionInfoIndex) ?: return
val leaderboardItem = InventoryUtils.getItemAtSlotIndex(ChocolateFactoryAPI.leaderboardIndex) ?: return
val barnItem = InventoryUtils.getItemAtSlotIndex(ChocolateFactoryAPI.barnIndex) ?: return
- val timeTowerItem = InventoryUtils.getItemAtSlotIndex(ChocolateFactoryAPI.timeTowerIndex) ?: return
ChocolateFactoryAPI.factoryUpgrades = emptyList()
processChocolateItem(chocolateItem)
val list = mutableListOf<ChocolateFactoryUpgrade>()
processPrestigeItem(list, prestigeItem)
+ processTimeTowerItem(timeTowerItem)
processProductionItem(productionInfoItem)
processLeaderboardItem(leaderboardItem)
processBarnItem(barnItem)
- processTimeTowerItem(timeTowerItem)
profileStorage.rawChocPerSecond =
(ChocolateFactoryAPI.chocolatePerSecond / profileStorage.chocolateMultiplier + .01).toInt()