- Add TODO_List.lua.
- Update the AIRBOSS[CN].lua to fit the dynamic slots.
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
# TODO
|
||||||
|
## Airboss
|
||||||
|
- 无线电选择航母turn into wind.
|
||||||
|
- 创建回收直升机 Recover Helo.
|
||||||
|
- 无线电请求S3B tanker.
|
||||||
+26
-4
@@ -6114,8 +6114,7 @@ function AIRBOSS:_CreateFlightGroup( group )
|
|||||||
element.ballcall = false
|
element.ballcall = false
|
||||||
element.ai = not self:_IsHumanUnit( unit )
|
element.ai = not self:_IsHumanUnit( unit )
|
||||||
element.recovered = nil
|
element.recovered = nil
|
||||||
-- text = text .. string.format( "\n[%d] %s onboard #%s, AI=%s", i, element.unitname, tostring( element.onboard ), tostring( element.ai ) )
|
text = text .. string.format( "\n[%d] %s onboard #%s, AI=%s", i, element.unitname, tostring( element.onboard ), tostring( element.ai ) )
|
||||||
text = text .. string.format( "\n[%d] %s 在甲板上 #%s, AI=%s", i, element.unitname, tostring( element.onboard ), tostring( element.ai ) )
|
|
||||||
table.insert( flight.elements, element )
|
table.insert( flight.elements, element )
|
||||||
end
|
end
|
||||||
self:T( self.lid .. text )
|
self:T( self.lid .. text )
|
||||||
@@ -13310,11 +13309,15 @@ function AIRBOSS:_GetOnboardNumbers( group, playeronly )
|
|||||||
-- Debug text.
|
-- Debug text.
|
||||||
local text = string.format( "Onboard numbers of group %s:", groupname )
|
local text = string.format( "Onboard numbers of group %s:", groupname )
|
||||||
|
|
||||||
|
local template=group:GetTemplate()
|
||||||
|
|
||||||
|
local numbers = {}
|
||||||
|
if template then
|
||||||
|
|
||||||
-- Units of template group.
|
-- Units of template group.
|
||||||
local units = group:GetTemplate().units
|
local units = template.units
|
||||||
|
|
||||||
-- Get numbers.
|
-- Get numbers.
|
||||||
local numbers = {}
|
|
||||||
for _, unit in pairs( units ) do
|
for _, unit in pairs( units ) do
|
||||||
|
|
||||||
-- Onboard number and unit name.
|
-- Onboard number and unit name.
|
||||||
@@ -13337,6 +13340,25 @@ function AIRBOSS:_GetOnboardNumbers( group, playeronly )
|
|||||||
-- Debug info.
|
-- Debug info.
|
||||||
self:T2( self.lid .. text )
|
self:T2( self.lid .. text )
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
if playeronly then
|
||||||
|
return 101
|
||||||
|
else
|
||||||
|
|
||||||
|
local units=group:GetUnits()
|
||||||
|
|
||||||
|
for i,_unit in pairs(units) do
|
||||||
|
local name=_unit:GetName()
|
||||||
|
|
||||||
|
numbers[name]=100+i
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
return numbers
|
return numbers
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user