feat: vedligehold — lav tank og slid i statusvinduet (1.62.206)

This commit is contained in:
2026-10-10 18:08:58 +02:00
parent 43add9cfe8
commit 658b362d88
7 changed files with 116 additions and 1 deletions
+4
View File
@@ -344,6 +344,10 @@ function ADStatusHud.snapshot(adEnv)
snapshot.chains = chainResult.chains or {}
for _, entry in ipairs(chainResult.dependencies or {}) do table.insert(snapshot.warnings, entry) end
for _, entry in ipairs(guarded("pickups", ADStatusHud.pickupEntries) or {}) do table.insert(snapshot.warnings, entry) end
-- vedligehold: næsten tom tank / stort slid (højst 3 linjer)
if ADMaintenance ~= nil and adEnv ~= nil then
for _, entry in ipairs(guarded("maintenance", ADMaintenance.entries, adEnv, nowMs()) or {}) do table.insert(snapshot.warnings, entry) end
end
for _, entry in ipairs(guarded("stuck", ADStatusHud.stuckEntries) or {}) do table.insert(snapshot.warnings, entry) end
for _, entry in ipairs(chainResult.suggestions or {}) do table.insert(snapshot.warnings, entry) end
return snapshot