Patched weight issues with mortars. 5000 kg is a bit too much for a mortar i think. Ed to fix this.

This commit is contained in:
FlightControl 2018-08-31 17:30:23 +02:00
parent 89051d5439
commit 8d41e4699c

View File

@ -1032,7 +1032,11 @@ do -- CARGO_REPRESENTABLE
self:I( { Desc = Desc } )
local Weight = math.random( 80, 120 )
if Desc then
Weight = Desc.massEmpty
if Desc.typeName == "2B11 mortar" then
Weight = 210
else
Weight = Desc.massEmpty
end
end
self:SetWeight( Weight )