diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-23 14:49:44 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-23 14:49:44 +0100 |
commit | 39855af4fe066fb4b1b11672aec635157d783e45 (patch) | |
tree | edd02e1172fca21460a210dcdf21f2d0ae594edf /src/main/java/at/hannibal2/skyhanni/data | |
parent | 4f133a119ad4cb02f4ecb60d3bfb474879c75923 (diff) | |
download | skyhanni-39855af4fe066fb4b1b11672aec635157d783e45.tar.gz skyhanni-39855af4fe066fb4b1b11672aec635157d783e45.tar.bz2 skyhanni-39855af4fe066fb4b1b11672aec635157d783e45.zip |
Added CropType.getCounter
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt b/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt index ba0d8d863..984c60df7 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt @@ -78,6 +78,8 @@ class GardenCropMilestones { companion object { val cropCounter: MutableMap<CropType, Long> get() = SkyHanniMod.feature.hidden.gardenCropCounter + fun CropType.getCounter() = cropCounter[this]!! + fun getTierForCrops(crops: Long): Int { var tier = 0 var totalCrops = 0L |