mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user