diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-05-12 00:54:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-12 00:54:37 +0200 |
commit | 9f4733bcf9142ba9d39c5c9725c0650e53edc2ce (patch) | |
tree | c91913720811019d80efd25eaa0a8f8607014310 /src | |
parent | 363dd6b46e9c2609b396e7ef1c37c802f93ef1eb (diff) | |
download | skyhanni-9f4733bcf9142ba9d39c5c9725c0650e53edc2ce.tar.gz skyhanni-9f4733bcf9142ba9d39c5c9725c0650e53edc2ce.tar.bz2 skyhanni-9f4733bcf9142ba9d39c5c9725c0650e53edc2ce.zip |
Improvement: Rabbit crush warning only during Hoppity (#1762)
Diffstat (limited to 'src')
2 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java index bffc5cc8e..bacd8aae0 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java @@ -83,6 +83,14 @@ public class ChocolateFactoryConfig { public int barnCapacityThreshold = 6; @Expose + @ConfigOption( + name = "Rabbit Crush During Hoppity", + desc = "Only warn about rabbit crush when the Hoppity event is active." + ) + @ConfigEditorBoolean + public boolean rabbitCrushOnlyDuringHoppity = false; + + @Expose @ConfigOption(name = "Extra Tooltip Stats", desc = "Shows extra information about upgrades in the tooltip.") @ConfigEditorBoolean @FeatureToggle diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBarnManager.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBarnManager.kt index 8f19d9959..445c72974 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBarnManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBarnManager.kt @@ -93,6 +93,8 @@ object ChocolateFactoryBarnManager { return } + if (config.rabbitCrushOnlyDuringHoppity && !ChocolateFactoryAPI.isHoppityEvent()) return + ChatUtils.clickableChat( message = if (profileStorage.currentRabbits == profileStorage.maxRabbits) { "§cYour barn is full! §7(${barnStatus()}). §cUpgrade it so they don't get crushed" |