diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-13 06:03:54 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-13 06:03:54 +0200 |
commit | 4e8664d8d5192ca196ef4e8bb9ac80787fccf9c3 (patch) | |
tree | 43f82db452d3900f85efe48d0e05e267d1fa5bae /src | |
parent | d4606dce2a1f66030a0fa3a1ecafe39547ee8e96 (diff) | |
download | skyhanni-4e8664d8d5192ca196ef4e8bb9ac80787fccf9c3.tar.gz skyhanni-4e8664d8d5192ca196ef4e8bb9ac80787fccf9c3.tar.bz2 skyhanni-4e8664d8d5192ca196ef4e8bb9ac80787fccf9c3.zip |
hopefully fixed finneganPerkFactor
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt index 2036a0a44..b53627699 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt @@ -26,7 +26,6 @@ import net.minecraftforge.fml.common.eventhandler.EventPriority import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import java.util.* import kotlin.concurrent.fixedRateTimer -import kotlin.random.Random class GardenCropMilestoneDisplay { private var progressDisplay = listOf<List<Any>>() @@ -129,8 +128,14 @@ class GardenCropMilestoneDisplay { val crop = item.getCropType() ?: return if (cultivatingData.containsKey(crop)) { val old = cultivatingData[crop]!! - val finneganPerkFactor = if (finneganPerkActive() && Random.nextDouble() <= 0.25) 0.5 else 1.0 +// val finneganPerkFactor = if (finneganPerkActive() && Random.nextDouble() <= 0.25) 0.5 else 1.0 +// val finneganPerkFactor = if (finneganPerkActive()) 0.8 else 1.0 + + // 1/(1 + 0.25*2) + val multiplier = 0.6666 + val finneganPerkFactor = if (finneganPerkActive()) multiplier else 1.0 val addedCounter = ((counter - old) * finneganPerkFactor).toInt() + println("addedCounter: $addedCounter") if (GardenCropMilestones.cropCounter.isEmpty()) { for (innerCrop in CropType.values()) { |