From e30fe11a96a439bada3b60d96909be06d45d4b1c Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Mon, 20 Jul 2020 14:19:48 -0700 Subject: [PATCH] Soviet01: If there aren't two radar domes on the map the mission is fail. Success happens when USSR owns two radar domes. --- scripts/SCU01EA.MAP.script | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/SCU01EA.MAP.script b/scripts/SCU01EA.MAP.script index 01804cc..3aacb03 100644 --- a/scripts/SCU01EA.MAP.script +++ b/scripts/SCU01EA.MAP.script @@ -12,14 +12,14 @@ end function map_frame() local numTeslaTanks = 0 - local numRadarDomes = 0 - numRadarDomes = CountBuildings(BuildingTypes.DOME, Houses.USSR) - if numRadarDomes == 0 then + -- Check to make sure there are two radar domes in the map, if not the player lost. + if not (CountBuildings(BuildingTypes.DOME) == 2) then Lose(Houses.USSR) end - if numRadarDomes == 2 then + -- Check to see if the soviets have two radar domes, if so the player has won. + if CountBuildings(BuildingTypes.DOME, Houses.USSR) == 2 then ToggleFireSale(Houses.GREECE, 1) -- Renable the fire sale for the AI Win(Houses.USSR) end