From 82e11b2bffbd9dd998edfd417aca1b1c4a2094b4 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 23 Mar 2023 19:56:08 +0100 Subject: Counting +64 pumking dicer drop to crop collection (cultivating does not count this) --- .../skyhanni/features/garden/GardenCropMilestoneDisplay.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt index 045be515a..e33c29ffd 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt @@ -45,9 +45,13 @@ class GardenCropMilestoneDisplay { private var needsInventory = false -// @SubscribeEvent -// fun onChatMessage(event: LorenzChatEvent) { -// if (!isEnabled()) return + @SubscribeEvent + fun onChatMessage(event: LorenzChatEvent) { + if (!isEnabled()) return + // TODO remove this once hypixel counts 64x pumpkin drops to cultivating + if (event.message == "§a§lUNCOMMON DROP! §r§eDicer dropped §r§f64x §r§fPumpkin§r§e!") { + CropType.PUMPKIN.setCounter(CropType.PUMPKIN.getCounter() + 64) + } // if (config.cropMilestoneWarnClose) { // val matcher = cropMilestoneLevelUpPattern.matcher(event.message) // if (matcher.matches()) { @@ -57,7 +61,7 @@ class GardenCropMilestoneDisplay { // SendTitleHelper.sendTitle("§b$cropType $newLevel", 1_500) // } // } -// } + } @SubscribeEvent fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) { -- cgit