Skip to content

Commit

Permalink
Fixed issue where AI would build colonizers as bombers after having s…
Browse files Browse the repository at this point in the history
…crapped their last existing bomber-design.
  • Loading branch information
Xilmi committed Aug 10, 2021
1 parent 2d16870 commit b44903c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rotp/model/ai/xilmi/AIGovernor.java
Expand Up @@ -461,7 +461,8 @@ else if(inAttackRange)
maxShipMaintainance = empire.fleetCommanderAI().maxShipMaintainance() / 4;
fighterPercentage = 0.75f;
}
if(empire.shipDesignerAI().bombingAdapted(lab.fighterDesign()) > 0)
if(empire.shipDesignerAI().bombingAdapted(lab.fighterDesign()) > 0
|| empire.shipDesignerAI().bombingAdapted(lab.bomberDesign()) < 0.5f)
fighterPercentage = 1.0f;
float maxShipMaintainanceBeforeAdj = maxShipMaintainance;
maxShipMaintainance *= prodScore;
Expand Down

0 comments on commit b44903c

Please sign in to comment.