From 336ac9eddbcfb15e0d279fcbcab8f6de04cc3c7a Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 11 Jul 2024 08:35:16 +0200 Subject: [PATCH] #AWACS - MS TTS - fix spelling out B-R-A in Threat call --- Moose Development/Moose/Ops/Awacs.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/Awacs.lua b/Moose Development/Moose/Ops/Awacs.lua index ac62198d6..0f4bef1f5 100644 --- a/Moose Development/Moose/Ops/Awacs.lua +++ b/Moose Development/Moose/Ops/Awacs.lua @@ -508,7 +508,7 @@ do -- @field #AWACS AWACS = { ClassName = "AWACS", -- #string - version = "0.2.64", -- #string + version = "0.2.65", -- #string lid = "", -- #string coalition = coalition.side.BLUE, -- #number coalitiontxt = "blue", -- #string @@ -5585,6 +5585,12 @@ function AWACS:_ThreatRangeCall(GID,Contact) local grptxt = self.gettext:GetEntry("GROUP",self.locale) local thrt = self.gettext:GetEntry("THREAT",self.locale) local text = string.format("%s. %s. %s %s, %s. %s",self.callsigntxt,pilotcallsign,contacttag,grptxt, thrt, BRATExt) + -- DONE MS TTS - fix spelling out B-R-A in this case + if string.find(text,"BRAA",1,true) then + text = string.gsub(text,"BRAA","brah") + elseif string.find(text,"BRA",1,true) then + text = string.gsub(text,"BRA","brah") + end if IsSub == false then self:_NewRadioEntry(text,text,GID,true,self.debug,true,false,true) end