This commit is contained in:
Pan 2019-04-15 20:06:07 +12:00
parent 209f408f1f
commit 75b4ecfda1
2 changed files with 5 additions and 3 deletions

View File

@ -210,7 +210,7 @@ public class buildingManagerAI {
}
}
//then reset factory production if still dont have enough credit to finish building
//then reset factory production if still dont have enough credit to finish refinery
hasEnoughCredit = theBaseInfo.currentCredit > 1200 -constructionYards[i].creditSpentOnBuilding;
if(!hasEnoughCredit) {
factory[] factories = mainThread.theAssetManager.factories;

View File

@ -215,7 +215,9 @@ public class defenseManagerAI {
giveBackControlOfDefendersToCombatAI();
majorThreatCooldown = 20;
majorThreatLocation.set(mainPlayerForceLocation);
}else {
}
/*
else {
float d = playerForceIsMovingTwoardsBase(mainPlayerForceLocation, mainPlayerForceDirection);
if(d != -1) {
giveBackControlOfDefendersToCombatAI();
@ -224,7 +226,7 @@ public class defenseManagerAI {
majorThreatLocation.add(mainPlayerForceDirection, d);
}
}
*/
}