feat(ui): Flows-oprydning — tavle grupperet Ind/Ud efter navn, traktorer: egne+ledige (Vis alle), bygninger: valgte først, uden markør skjult (Vis alle); fix: staldes foderkrybbe (feedingTrough) i stationsopslag og bygningsmarkører — hønsehus (v1.19.0.0)
This commit is contained in:
@@ -1259,5 +1259,22 @@ check("X3 Wait-logik springer udkørsel over", okWait, true)
|
||||
FS25_AutoDrive.AutoDrive.getAllDischargeableUnits = originalUnits
|
||||
ADOutbound = nil
|
||||
|
||||
-- FT: hønsehus — foderkrybben (spec_husbandryFood.feedingTrough) står ikke i aflæsningsstationens
|
||||
-- unloadTriggers; stationsopslaget ved markøren skal alligevel finde hønsehuset
|
||||
do
|
||||
local coop = {getHusbandryFillLevel = function() return 0 end, getName = function() return "Chicken Coop" end,
|
||||
spec_husbandryFood = {feedingTrough = {exactFillRootNode = 9901}}}
|
||||
nodePositions[9901] = {x = 20000, z = 3}
|
||||
local coopStation = {owningPlaceable = coop, unloadTriggers = {}}
|
||||
table.insert(unloadStations, coopStation)
|
||||
g_currentMission.placeableSystem = {placeables = {coop}}
|
||||
ADSmartPickup.invalidateUnloadCandidates()
|
||||
addMarker(95, "Chicken 1 food", "Chicken", 20000, 10)
|
||||
local found = ADSmartPickup.getUnloadStationAtWayPointId(FS25_AutoDrive, 95, 1)
|
||||
check("FT krybbe findes via markøren", found ~= nil and found.owningPlaceable == coop, true)
|
||||
g_currentMission.placeableSystem = nil
|
||||
ADSmartPickup.invalidateUnloadCandidates()
|
||||
end
|
||||
|
||||
print(failures == 0 and "\nALLE TESTS OK" or ("\n" .. failures .. " FEJL"))
|
||||
os.exit(failures == 0 and 0 or 1)
|
||||
|
||||
Reference in New Issue
Block a user