chore: udkørslens holdbesked viser liter i lager og læs (1.62.359)

This commit is contained in:
2026-10-19 01:34:50 +02:00
parent 24eb1faf22
commit ce3177ef36
3 changed files with 6 additions and 3 deletions
+4 -2
View File
@@ -104,8 +104,10 @@ local function reasonFor(product, e, input)
return string.format("%s: %s reserveret til %s", product.name, formatLiters(e.reserve), names ~= "" and names or "gårdens eget forbrug")
end
if wantsSell(product.policy) and (e.priceOk or e.overflow) and product.quote ~= nil and not e.minSourceOk then
return string.format("%s: lager %d %% (henter fra %d %% eller fuldt læs)", product.name,
math.floor(e.storagePercent + 0.5), input.minSourcePercent)
-- liter med (in-game 19/10: "lager 2 %" skjulte, at flowet kun hentede bøffelmælk, mens 350.000 l komælk ventede)
return string.format("%s: lager %d %% (%s l, læsset %s l; henter fra %d %% eller fuldt læs)", product.name,
math.floor(e.storagePercent + 0.5), formatLiters(e.available), input.capacity ~= nil and formatLiters(input.capacity) or "?",
input.minSourcePercent)
end
local canStore = wantsStore(product.policy) and product.store ~= nil
if wantsSell(product.policy) and product.quote == nil and not canStore then
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="107">
<author>masterdraco</author>
<version>1.62.358.0</version>
<version>1.62.359.0</version>
<title>
<en>AD Smart Pickup</en>
</title>