Make the AI only build submarines if the player has a shipyard
This commit is contained in:
@@ -107,6 +107,13 @@ ProduceVehicles = function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
ProduceNaval = function()
|
ProduceNaval = function()
|
||||||
|
if not shouldProduce and #Utils.Where(Map.ActorsInWorld, function(self) return self.Owner == player and self.Type == "syrd" end) < 1 then
|
||||||
|
Trigger.AfterDelay(DateTime.Minutes(1), ProduceNaval)
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
shouldProduce = true
|
||||||
|
|
||||||
if SubPen.IsDead or SubPen.Owner ~= ussr then
|
if SubPen.IsDead or SubPen.Owner ~= ussr then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user