Skip to content

Commit

Permalink
Update Colony.java
Browse files Browse the repository at this point in the history
currentProductionCapacity now correctly takes into consideration how many factories are actually operated.
  • Loading branch information
Xilmi committed Jun 17, 2021
1 parent 46f0fcd commit 91ae8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rotp/model/colony/Colony.java
Expand Up @@ -152,7 +152,7 @@ public float currentProductionCapacity() {
// returns a pct (0 to 1) representing the colony's current
// production vs its maximum possible formula
float maxFactories = industry().maxFactories();
float factories = min(maxFactories, industry().factories());
float factories = min(maxFactories, industry().factories(), industry().maxUseableFactories());
float pop = population();
float maxPop = planet().maxSize();

Expand Down

0 comments on commit 91ae8f9

Please sign in to comment.