From 32ae68c7c16ba512ae1890a1b50cc14a6ffd5aa4 Mon Sep 17 00:00:00 2001 From: "atom.skillz" Date: Tue, 12 Nov 2024 07:43:18 -0600 Subject: [PATCH] Add current stage and growth to tray description --- objects/isn_unifiedgrowingtray.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/objects/isn_unifiedgrowingtray.lua b/objects/isn_unifiedgrowingtray.lua index 8659cc0b870..e669e905947 100644 --- a/objects/isn_unifiedgrowingtray.lua +++ b/objects/isn_unifiedgrowingtray.lua @@ -170,6 +170,7 @@ function handleTooltip(args) --seed use and seed display local seedString="" + local seedTimeString="" if args.seed and args.seed.name then seedString=root.itemConfig(args.seed.name).config.shortdescription seedString=" (^yellow;" .. seedString .. "^reset;)" @@ -184,6 +185,11 @@ function handleTooltip(args) end seedString='Seeds Used: ' .. seedUseWith .. seedString .. "\n" + --seed min and max duration display + if args.seed and args.seed.name then + seedString=seedString.."Stage ^yellow;"..storage.currentStage.."^reset; ^green;"..math.floor(storage.growth).."^reset; / ^green;"..storage.stage[storage.currentStage].val.."^reset;\n" + end + --yield calc local yieldWith=getFertSum('yield', args.fert, args.water) local yieldWithout=getFertSum('yield', "absolutelynothing", "absolutelynothing")