From c0067955cdf8c4fceb0bf9564c7b0427e4b7b992 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 30 Jun 2024 11:06:45 +0200 Subject: Fix: Chocolate per Time Tower charge ignoring Mu Rabbit (#2165) --- .../skyhanni/features/inventory/chocolatefactory/ChocolateFactoryAPI.kt | 2 +- .../features/inventory/chocolatefactory/ChocolateFactoryTooltip.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryAPI.kt index 7df0f5bd2..a6f3626b6 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryAPI.kt @@ -163,7 +163,7 @@ object ChocolateFactoryAPI { fun timeTowerChargeDuration() = if (HoppityCollectionStats.hasFoundRabbit("Einstein")) 7.hours else 8.hours - private fun timeTowerMultiplier(): Double { + fun timeTowerMultiplier(): Double { var multiplier = (profileStorage?.timeTowerLevel ?: 0) * 0.1 if (HoppityCollectionStats.hasFoundRabbit("Mu")) multiplier += 0.7 return multiplier diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltip.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltip.kt index f73655bc5..8973bc1e4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltip.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltip.kt @@ -45,7 +45,7 @@ object ChocolateFactoryTooltip { private fun chocPerTimeTower(): Int { val profileStorage = profileStorage ?: return 0 - val amountPerSecond = profileStorage.rawChocPerSecond * profileStorage.timeTowerLevel * .1 + val amountPerSecond = profileStorage.rawChocPerSecond * ChocolateFactoryAPI.timeTowerMultiplier() val amountPerHour = amountPerSecond * 60 * 60 return amountPerHour.toInt() } -- cgit