mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
OPS
This commit is contained in:
@@ -176,7 +176,11 @@ function COHORT:New(TemplateGroupName, Ngroups, CohortName)
|
||||
for i,_unit in pairs(units) do
|
||||
local unit=_unit --Wrapper.Unit#UNIT
|
||||
local desc=unit:GetDesc()
|
||||
self.weightAsset=self.weightAsset + (desc.massMax or 666)
|
||||
local mass=666
|
||||
if desc then
|
||||
mass=desc.massMax or desc.massEmpty
|
||||
end
|
||||
self.weightAsset=self.weightAsset + (mass or 666)
|
||||
if i==1 then
|
||||
self.cargobayLimit=unit:GetCargoBayFreeWeight()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user