From 0570533d7cf1f62a10dd51ac04bca3c2691b44bc Mon Sep 17 00:00:00 2001 From: Robin Date: Thu, 21 Jan 2021 18:20:18 +0100 Subject: [PATCH] Add Ardenweald Gardening info to the tooltip. --- core.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core.lua b/core.lua index 6d80ffe..39503ad 100644 --- a/core.lua +++ b/core.lua @@ -247,6 +247,14 @@ local function OnTooltipShow(GameTooltip) end local nr = C_Garrison.GetInProgressMissions(GBM) local nr2 = C_Garrison.GetAvailableMissions(GBM) + if(GBM == 123) then + if(C_ArdenwealdGardening.IsGardenAccessible()) then + local data = C_ArdenwealdGardening.GetGardenData() + if(data and data['ready'] and data['ready']>0) then + GameTooltip:AddLine(addon:colorize(format("Attention needed in your garden. (%ix)",data['ready']),'00ff00')) + end + end + end if(num>0) then GameTooltip:AddDoubleLine(addon:colorize("Follower:","ffffff"),num.."/"..C_Garrison.GetNumFollowers(GBM)) end