mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Pretense SEAD missions will now also target AAA. Also incorporates the fix to fullBuild():
Dzsekeb — 03/09/2023 11:50 add the highlighted line to the fullbuild function https://discord.com/channels/959044877470027848/1031459721313517578/1147815809075392604
This commit is contained in:
parent
dd0217a220
commit
11a0713e50
@ -1221,7 +1221,7 @@ do
|
|||||||
if v.type == 'defense' and v.side ~= group:getCoalition() then
|
if v.type == 'defense' and v.side ~= group:getCoalition() then
|
||||||
local gr = Group.getByName(v.name)
|
local gr = Group.getByName(v.name)
|
||||||
for _,unit in ipairs(gr:getUnits()) do
|
for _,unit in ipairs(gr:getUnits()) do
|
||||||
if unit:hasAttribute('SAM SR') or unit:hasAttribute('SAM TR') then
|
if unit:hasAttribute('SAM SR') or unit:hasAttribute('SAM TR') or unit:hasAttribute('AAA') or unit:hasAttribute('IR Guided SAM') or unit:hasAttribute('SAM LL') then
|
||||||
table.insert(viable, unit:getName())
|
table.insert(viable, unit:getName())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -1235,7 +1235,7 @@ do
|
|||||||
{
|
{
|
||||||
id = 'EngageTargets',
|
id = 'EngageTargets',
|
||||||
params = {
|
params = {
|
||||||
targetTypes = {'SAM SR', 'SAM TR'}
|
targetTypes = {'SAM SR', 'SAM TR', 'AAA', 'IR Guided SAM', 'SAM LL'}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4064,6 +4064,8 @@ do
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ZoneCommand:fullBuild(useCost)
|
function ZoneCommand:fullBuild(useCost)
|
||||||
|
if self.side ~= 1 and self.side ~= 2 then return end
|
||||||
|
|
||||||
for i,v in ipairs(self.upgrades[self.side]) do
|
for i,v in ipairs(self.upgrades[self.side]) do
|
||||||
if useCost then
|
if useCost then
|
||||||
local cost = v.cost * useCost
|
local cost = v.cost * useCost
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user