feat(mp): etape 1 - automatik kun på serveren, fælles gård via ADUtil.farmId, klienter skriver aldrig modens filer

This commit is contained in:
2026-10-25 20:48:18 +01:00
parent b4004616eb
commit 1f639af77a
34 changed files with 125 additions and 54 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ end
-- gælder. En gyllevogn/spreder foretrækkes, når gården har mindst minSharePercent af markens behov for DENS vare.
function ADFieldFertilizer.preferCandidate(farmId, areaHa)
if not ADFieldFertilizer.isEnabled() then return nil end
farmId = farmId or (g_currentMission ~= nil and g_currentMission.getFarmId ~= nil and g_currentMission:getFarmId()) or 1
farmId = farmId or ADUtil.farmId()
local minStock = ADFieldWork ~= nil and ADFieldWork.MIN_REFILL_STOCK_L or 500
local share = ADFieldFertilizer.minSharePercent()
return function(candidate)