aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-05-12 00:54:37 +0200
committerGitHub <noreply@github.com>2024-05-12 00:54:37 +0200
commit9f4733bcf9142ba9d39c5c9725c0650e53edc2ce (patch)
treec91913720811019d80efd25eaa0a8f8607014310 /src
parent363dd6b46e9c2609b396e7ef1c37c802f93ef1eb (diff)
downloadskyhanni-9f4733bcf9142ba9d39c5c9725c0650e53edc2ce.tar.gz
skyhanni-9f4733bcf9142ba9d39c5c9725c0650e53edc2ce.tar.bz2
skyhanni-9f4733bcf9142ba9d39c5c9725c0650e53edc2ce.zip
Improvement: Rabbit crush warning only during Hoppity (#1762)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBarnManager.kt2
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"