fix(lagre): 'rækker til' regnes på nettoforbrug (+ 'stiger'), bredere beholdningskolonne, kort tooltip (v1.16.1.0)

This commit is contained in:
2026-09-24 02:48:54 +02:00
parent 3227453392
commit ac9dfe0d62
9 changed files with 34 additions and 18 deletions
@@ -98,7 +98,12 @@ function SmartPickupFrame:statCells(stat)
if stat.valueNow ~= nil then
now, top = SmartPickupFrame.formatMoney(stat.valueNow), SmartPickupFrame.formatMoney(stat.valueTop)
end
local days = stat.days ~= nil and string.format(i18n:getText("spu_stat_days"), stat.days) or "-"
local days = "-"
if stat.days ~= nil then
days = string.format(i18n:getText("spu_stat_days"), stat.days)
elseif stat.rising then
days = i18n:getText("spu_stat_rising")
end
return {self:fillTypeTitle(stat.fillType), here, now, top, fc(stat.farmTotal), days, ADStorageStats.rateText(stat.consumption, stat.production, fc)}
end