Permalink
Browse files

Fix logging output for max_pop_size()

  • Loading branch information...
Morlic-fo committed Jul 10, 2017
1 parent 254947d commit 88abef82528eee00919ecebb3da58cacd69f7eef
Showing with 4 additions and 3 deletions.
  1. +4 −3 default/python/AI/ColonisationAI.py
@@ -152,9 +152,10 @@ def max_pop_size():
base_pop_not_modified_by_species += star_pop_mod
detail.append("Phototropic Star Bonus_PSM_late(%0.1f)" % star_pop_mod)
detail.append("baseMaxPop+ size*(psm_early*species_mod+psm_late) = %d + %d * (%d * %.2f + %d) = %.2f" % (
pop_const_mod, planet_size, base_pop_modified_by_species,
pop_tag_mod, base_pop_not_modified_by_species, max_pop_size()))
detail.append("MaxPop = baseMaxPop + size*(psm_early + (species_mod - 1)*abs(psm_early) + psm_late)"
" = %d + %d * (%d + (%.2f-1)*abs(%d) + %d) = %.2f" % (
pop_const_mod, planet_size, base_pop_modified_by_species,
pop_tag_mod, base_pop_modified_by_species, base_pop_not_modified_by_species, max_pop_size()))
detail.append("maxPop %.1f" % max_pop_size())
print detail
return max_pop_size()

0 comments on commit 88abef8

Please sign in to comment.