Skip to content

Commit

Permalink
Add current stage and growth to tray description
Browse files Browse the repository at this point in the history
  • Loading branch information
atom-skillz committed Nov 12, 2024
1 parent 2ef81d3 commit 32ae68c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions objects/isn_unifiedgrowingtray.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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;)"
Expand All @@ -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")
Expand Down

0 comments on commit 32ae68c

Please sign in to comment.