This commit is contained in:
Frank
2021-08-25 17:20:17 +02:00
parent 259b201e65
commit 1e6899c40b
9 changed files with 289 additions and 229 deletions

View File

@@ -1187,11 +1187,6 @@ function ARMYGROUP:_InitGroup(Template)
-- Get template of group.
local template=Template or self:_GetTemplate()
-- Define category.
self.isAircraft=false
self.isNaval=false
self.isGround=true
-- Ground are always AI.
self.isAI=true
@@ -1243,21 +1238,8 @@ function ARMYGROUP:_InitGroup(Template)
self:_AddElementByName(unit:GetName())
end
-- Get first unit. This is used to extract other parameters.
local unit=units[1] --Wrapper.Unit#UNIT
if unit then
-- Get Descriptors.
self.descriptors=unit:GetDesc()
-- Set type name.
self.actype=unit:GetTypeName()
-- Init done.
self.groupinitialized=true
end
-- Init done.
self.groupinitialized=true
return self
end