diff options
author | alexia <me@alexia.lol> | 2023-11-22 11:47:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 11:47:29 +0100 |
commit | 97db59ea2efe455a2fd1f98fecdcbce8a7555ba7 (patch) | |
tree | ceacd1deea51de9383225f6027e78a92c6153ca6 /src | |
parent | 754e41275d0d67cf5043c2fafbbb4006153fcd74 (diff) | |
download | skyhanni-97db59ea2efe455a2fd1f98fecdcbce8a7555ba7.tar.gz skyhanni-97db59ea2efe455a2fd1f98fecdcbce8a7555ba7.tar.bz2 skyhanni-97db59ea2efe455a2fd1f98fecdcbce8a7555ba7.zip |
Fix crops per minute calculation (#725)
Fixed crops per second and time remaining not using the 100 base ff in their formula. #725
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt index 781af77e8..2a8355eab 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt @@ -167,7 +167,7 @@ object GardenCropMilestoneDisplay { val farmingFortune = FarmingFortuneDisplay.getCurrentFarmingFortune() val speed = GardenCropSpeed.averageBlocksPerSecond - val farmingFortuneSpeed = (farmingFortune * crop.baseDrops * speed / 100).round(1).toInt() + val farmingFortuneSpeed = ((100.0 + farmingFortune) * crop.baseDrops * speed / 100).round(1).toInt() if (farmingFortuneSpeed > 0) { crop.setSpeed(farmingFortuneSpeed) |