fix: fabrik fundet på afstand får produktionspunktets læssestation; bulk-outputs regnes ikke som paller når markøren ikke rammer triggeren (v1.12.5.0)
This commit is contained in:
@@ -203,6 +203,21 @@ check("S9 station nil", source9.station, nil)
|
||||
local products9 = ADSources.getProducts(adEnv, source9, 1)
|
||||
check("S9 kurve er palle", products9[1].isPallet, true)
|
||||
check("S9 fabrik foretrækkes frem for objektlager i nærheden", ADSources.identify(adEnv, 7, 1).placeable, basketFactory)
|
||||
-- S9b: fabrik fundet på afstand, men produktionspunktet HAR en læssestation (sukkerfabrik hvor markøren
|
||||
-- ikke rammer triggeren): stationen hentes fra produktionspunktet, og sukker er bulk, ikke paller
|
||||
local mill2Storage = storageOf({[SUGAR] = 1000}, {[SUGAR] = 180000})
|
||||
local mill2 = {
|
||||
rootNode = {x = 1200, z = 1200}, getName = function() return "Sugar mill 2" end,
|
||||
spec_productionPoint = {productionPoint = {productions = {{outputs = {{type = SUGAR, amount = 1}}}}, storage = mill2Storage,
|
||||
loadingStation = {supportedFillTypes = {[SUGAR] = true}}}},
|
||||
}
|
||||
table.insert(g_currentMission.placeableSystem.placeables, mill2)
|
||||
addMarker(9, "Mill 2 load", 1210, 1190)
|
||||
local source9b = ADSources.identify(adEnv, 9, 1)
|
||||
check("S9b fabrik", source9b.kind, "factory")
|
||||
check("S9b station fra produktionspunktet", source9b.station, mill2.spec_productionPoint.productionPoint.loadingStation)
|
||||
check("S9b sukker = bulk", ADSources.isPalletAt(source9b, SUGAR), false)
|
||||
check("S9b produkt bulk", ADSources.getProducts(adEnv, source9b, 1)[1].isPallet, false)
|
||||
local excluded = ADSources.getSourcePlaceables({source1, source2})
|
||||
check("S8 udelukkede placeables", excluded[factory] and excluded[silo], true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user