From 53367c786e16236ac95d4014f2e84a2d9ea43c4e Mon Sep 17 00:00:00 2001 From: Penecruz <73371761+Penecruz@users.noreply.github.com> Date: Wed, 1 Sep 2021 20:05:57 +1000 Subject: [PATCH] AV-8B LIG and Unicorn fix --- Moose Development/Moose/Ops/Airboss.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/Ops/Airboss.lua b/Moose Development/Moose/Ops/Airboss.lua index 085ec11b4..9bf8113f6 100644 --- a/Moose Development/Moose/Ops/Airboss.lua +++ b/Moose Development/Moose/Ops/Airboss.lua @@ -12206,6 +12206,7 @@ end -- * > 24 seconds: No Grade "--" -- -- If you manage to be between 16.4 and and 16.6 seconds, you will even get and okay underline "\_OK\_". +-- No groove time for Harrier on LHA, LHD set to Tgroove Unicorn as starting point to allow possible _OK_ 5.0. -- -- @param #AIRBOSS self -- @param #AIRBOSS.PlayerData playerData Player data table. @@ -12224,6 +12225,8 @@ function AIRBOSS:_EvalGrooveTime(playerData) grade="OK Groove" elseif t<=24 then grade="(LIG)" + elseif t>=25 and aircrafttype~=AIRBOSS.AircraftCarrier.AV8B then -- VSTOL Operations with AV-8B + grade="OK V/STOL Groove" else grade="LIG" end @@ -12258,7 +12261,7 @@ function AIRBOSS:_LSOgrade(playerData) -- Put everything together. local G=GXX.." "..GIM.." ".." "..GIC.." "..GAR - -- Count number of minor, normal and major deviations. + -- Count number of minor, normal and major deviations. TODO - work on Harrier counts due slower approach speed. local N=nXX+nIM+nIC+nAR local nL=count(G, '_')/2 local nS=count(G, '%(') @@ -12270,8 +12273,8 @@ function AIRBOSS:_LSOgrade(playerData) local grade local points - if N==0 and TgrooveUnicorn then - -- No deviations, should be REALLY RARE! + if N==0 and (TgrooveUnicorn or aircrafttype~=AIRBOSS.AircraftCarrier.AV8B) then + -- No deviations, should be REALLY RARE! Grove time for AV-8B Harrier not required, possible to still get Unicorn. grade="_OK_" points=5.0 G="Unicorn"