From 32ae68c7c16ba512ae1890a1b50cc14a6ffd5aa4 Mon Sep 17 00:00:00 2001 From: "atom.skillz" Date: Tue, 12 Nov 2024 07:43:18 -0600 Subject: [PATCH 1/2] 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") From 2f98c7b66dc4de8fe147a2a7a4057663fde15621 Mon Sep 17 00:00:00 2001 From: "atom.skillz" Date: Tue, 12 Nov 2024 07:52:51 -0600 Subject: [PATCH 2/2] Remove unused variable --- objects/isn_unifiedgrowingtray.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/objects/isn_unifiedgrowingtray.lua b/objects/isn_unifiedgrowingtray.lua index e669e905947..e825c125a98 100644 --- a/objects/isn_unifiedgrowingtray.lua +++ b/objects/isn_unifiedgrowingtray.lua @@ -170,7 +170,6 @@ 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;)"