aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/event
diff options
context:
space:
mode:
authormartimavocado <39881008+martimavocado@users.noreply.github.com>2024-06-20 22:35:54 +0100
committerGitHub <noreply@github.com>2024-06-20 23:35:54 +0200
commit6410dcf999a08d4b6625fdc25f2db148c9df8338 (patch)
treea2d3c2c1a8b5340e24c115d8bcad407aac90e9f3 /src/main/java/at/hannibal2/skyhanni/features/event
parent89c8bf8103b9429fbc7a1ea63612dac565872d43 (diff)
downloadskyhanni-6410dcf999a08d4b6625fdc25f2db148c9df8338.tar.gz
skyhanni-6410dcf999a08d4b6625fdc25f2db148c9df8338.tar.bz2
skyhanni-6410dcf999a08d4b6625fdc25f2db148c9df8338.zip
Feature: Block opening chocolate factory without Mythic Rabbit equipped (#2124)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/MythicRabbitPetWarning.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/MythicRabbitPetWarning.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/MythicRabbitPetWarning.kt
index 59e951d21..8162f3a05 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/MythicRabbitPetWarning.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/MythicRabbitPetWarning.kt
@@ -15,14 +15,16 @@ object MythicRabbitPetWarning {
if (lastCheck.passedSince() < 30.seconds) return
- if (!PetAPI.isCurrentPet(mythicRabbit)) {
+ if (!correctPet()) {
lastCheck = SimpleTimeMark.now()
warn()
}
}
+ fun correctPet() = PetAPI.isCurrentPet(mythicRabbit)
+
private fun warn() {
- ChatUtils.chat("Use a mythic Rabbit pet for more chocolate!")
+ ChatUtils.chat("Use a §dMythic Rabbit Pet §efor more chocolate!")
LorenzUtils.sendTitle("§cNo Rabbit Pet!", 3.seconds)
}
}