feat: udkørsel kan sælge alt gården ikke bruger + politikken Behold (1.62.378)

This commit is contained in:
2026-10-19 14:30:18 +02:00
parent 66dfe1e0fb
commit e04550951c
13 changed files with 159 additions and 16 deletions
@@ -234,8 +234,11 @@ function SmartPickupFrame:flowGuideContext(adEnv, draft)
if draft.kind == "outbound" then
for _, product in ipairs(ADRunsController.getRunProducts(adEnv, preview, true)) do
local title = tostring(product.title)
table.insert(context.products, {name = product.name, title = title,
text = string.format("%s — %s l", title, SmartPickupFrame.formatCompact(product.available or 0))})
-- ubrugt på gården: mærkes, så spilleren kan se, hvad "Sælg alt, gården ikke bruger" tager
local unused = product.used == false
table.insert(context.products, {name = product.name, title = title, unused = unused,
text = string.format("%s — %s l%s", title, SmartPickupFrame.formatCompact(product.available or 0),
unused and self.i18n:getText("spu_guide_flow_unusedSuffix") or "")})
end
context.storeBuildings = self:flowStoreContext(adEnv, preview, farmId)
else