From 39855af4fe066fb4b1b11672aec635157d783e45 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 23 Mar 2023 14:49:44 +0100 Subject: Added CropType.getCounter --- src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/data') 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 get() = SkyHanniMod.feature.hidden.gardenCropCounter + fun CropType.getCounter() = cropCounter[this]!! + fun getTierForCrops(crops: Long): Int { var tier = 0 var totalCrops = 0L -- cgit