Merge pull request #10940 from pchote/drain-remaining-funds
Fix AI stalling after losing its conyard and ref.
This commit is contained in:
@@ -429,9 +429,10 @@ namespace OpenRA.Mods.Common.AI
|
|||||||
|
|
||||||
public bool HasAdequateProc()
|
public bool HasAdequateProc()
|
||||||
{
|
{
|
||||||
// Require at least one refinery, unless we have no power (can't build it).
|
// Require at least one refinery, unless we can't build it.
|
||||||
return CountBuildingByCommonName(Info.BuildingCommonNames.Refinery, Player) > 0 ||
|
return CountBuildingByCommonName(Info.BuildingCommonNames.Refinery, Player) > 0 ||
|
||||||
CountBuildingByCommonName(Info.BuildingCommonNames.Power, Player) == 0;
|
CountBuildingByCommonName(Info.BuildingCommonNames.Power, Player) == 0 ||
|
||||||
|
CountBuildingByCommonName(Info.BuildingCommonNames.ConstructionYard, Player) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool HasMinimumProc()
|
public bool HasMinimumProc()
|
||||||
|
|||||||
Reference in New Issue
Block a user