summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-05 23:58:01 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-05 23:58:15 +0200
commitc66f76a618b5a25f92767ed36fda254d81c302ff (patch)
tree3f3a9f0904c2d3b28d89e1b43573b40ee0699e6b /src/main/java/at/hannibal2/skyhanni/data
parent22002f2df339e794b86871850354fdb211176401 (diff)
downloadskyhanni-c66f76a618b5a25f92767ed36fda254d81c302ff.tar.gz
skyhanni-c66f76a618b5a25f92767ed36fda254d81c302ff.tar.bz2
skyhanni-c66f76a618b5a25f92767ed36fda254d81c302ff.zip
Added support for maxed out crop milestones
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt2
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 e78c68872..7d5b6cd5c 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt
@@ -55,6 +55,8 @@ class GardenCropMilestones {
cropCounter?.set(this, counter)
}
+ fun CropType.isMaxed() = getCounter() >= 1_000_000_000
+
fun getTierForCrops(crops: Long): Int {
var tier = 0
var totalCrops = 0L