feat: lever slagtedyr til eget slagteri (valg pr. stald, fra slagteriets mindstealder)
This commit is contained in:
@@ -91,7 +91,7 @@ function SmartPickupFrame:addSettingsBarnRows(keys, barns, animalBarns)
|
||||
local spec = ADSettings.KEYS[key]
|
||||
local list = {}
|
||||
for _, barn in ipairs(spec.animalBarns and animalBarns or barns) do
|
||||
if key ~= "sellReadySpreadMonths" or ADSettings.getOwn("sellReadyAnimals", barn.id) == 1 then table.insert(list, barn) end
|
||||
if (key ~= "sellReadySpreadMonths" and key ~= "sellReadyTarget") or ADSettings.getOwn("sellReadyAnimals", barn.id) == 1 then table.insert(list, barn) end
|
||||
end
|
||||
if spec.perBuilding and #list > 0 then
|
||||
self:addTextRow(string.format(i18n:getText("spu_set_perBarnTitle"), keyTitle(i18n, key)))
|
||||
|
||||
Reference in New Issue
Block a user