DETECTION, SET, ARTY, WAREHOUSE, AIRBOSS, A2A_DISPATCHER

DETECTION
- Fixed bug with late activated groups.

ARTY v1.1.2
- Added attack group task for ships.
- Added respawn option.

WAREHOUSE v0.9.5
- Added respawn option.

AIRBOSS v1.0.3
- Recovery time extended if flights are still in the pattern.

SET
- Added CountAlive() function.

A2A_DISPATCHER
- Bug fixes in :ParkDefender() function.
This commit is contained in:
Frank
2019-06-26 19:19:17 +02:00
parent 1224fb2d5a
commit 2a7b9cf898
6 changed files with 269 additions and 52 deletions

View File

@@ -3620,9 +3620,13 @@ function AIRBOSS:_CheckRecoveryTimes()
if self:IsRecovering() and not recovery.OVER then
if #self.Qpattern>0 then
-- Get number of airborne aircraft units(!) currently in pattern.
local _,npattern=self:_GetQueueInfo(self.Qpattern)
if npattern>0 then
local extmin=5*#self.Qpattern
-- Extend recovery time. 5 min per flight.
local extmin=5*npattern
recovery.STOP=recovery.STOP+extmin*60
local text=string.format("We still got flights in the pattern.\nRecovery time prolonged by %d minutes.\nNow get your act together and no more bolters!", extmin)