Merge pull request #1414 from acrojason/naval-cargo

Naval cargo
This commit is contained in:
Frank
2020-12-31 20:38:30 +01:00
committed by GitHub
7 changed files with 697 additions and 29 deletions

View File

@@ -1452,6 +1452,19 @@ do -- Cargo
}
self.__.CargoBayWeightLimit = Weights[Desc.typeName] or ( Desc.massMax - ( Desc.massEmpty + Desc.fuelMassMax ) )
elseif self:IsShip() then
local Desc = self:GetDesc()
self:F({Desc=Desc})
local Weights = {
["Type_071"] = 245000,
["LHA_Tarawa"] = 500000,
["Ropucha-class"] = 150000,
["Dry-cargo ship-1"] = 70000,
["Dry-cargo ship-2"] = 70000,
}
self.__.CargoBayWeightLimit = Weights[Desc.typeName]
else
local Desc = self:GetDesc()