Warehouse v0.4.9

Added option to force cargo bay limit and cargo asset weight.
This commit is contained in:
funkyfranky
2018-09-17 00:23:04 +02:00
parent 2d029c6405
commit 98b427a26f
3 changed files with 100 additions and 30 deletions

View File

@@ -142,9 +142,11 @@ function AI_CARGO:New( Carrier, CargoSet )
-- @param #string Event
-- @param #string To
for _, CarrierUnit in pairs( Carrier:GetUnits() ) do
CarrierUnit:SetCargoBayWeightLimit()
end
-- FF "Workaround" for not being able to set the cargo bay limit manually for the carrier group.
-- FF Moreover, the carrier group is an input parameter and should not be overwritten here.
--for _, CarrierUnit in pairs( Carrier:GetUnits() ) do
--CarrierUnit:SetCargoBayWeightLimit()
--end
self.Transporting = false
self.Relocating = false