feat: vare uden køber som gården selv bruger vises som 'bruges selv'
This commit is contained in:
@@ -97,7 +97,7 @@ function SmartPickupFrame:statCells(stat)
|
||||
here = string.format(i18n:getText("spu_stat_pallets"), stat.count, stat.slots)
|
||||
end
|
||||
if stat.percent ~= nil then here = here .. string.format(" %d %%", stat.percent) end
|
||||
local now, top = i18n:getText("spu_stat_noSell"), ""
|
||||
local now, top = i18n:getText(ADStorageStats.noValueKey(stat)), ""
|
||||
if stat.valueNow ~= nil then
|
||||
now, top = SmartPickupFrame.formatMoney(stat.valueNow), SmartPickupFrame.formatMoney(stat.valueTop)
|
||||
end
|
||||
|
||||
@@ -236,7 +236,7 @@ end
|
||||
|
||||
function SmartPickupFrame:itemCells(stat)
|
||||
local marker = self:isItemExpanded(stat.fillType) and "– " or "+ "
|
||||
local value = stat.valueNow ~= nil and SmartPickupFrame.formatMoney(stat.valueNow) or self.i18n:getText("spu_stat_noSell")
|
||||
local value = stat.valueNow ~= nil and SmartPickupFrame.formatMoney(stat.valueNow) or self.i18n:getText(ADStorageStats.noValueKey(stat))
|
||||
return {marker .. stat.title, self:itemAmountText(stat), value, self:itemRateText(stat)}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user