Tiles with gold are now ranked higher if civ is in a bad financial situation

This commit is contained in:
Yair Morgenstern
2018-07-17 13:13:23 +03:00
parent a7ddc07880
commit 5fed13eb76

View File

@ -19,7 +19,8 @@ class Automation {
var rank = 0.0f
if (stats.food <= 2) rank += stats.food
else rank += (2 + (stats.food - 2) / 2f) // 1 point for each food up to 2, from there on half a point
rank += stats.gold / 2
if(civInfo.gold>0 && civInfo.getStatsForNextTurn().gold>0) rank += stats.gold / 2
else rank += stats.gold
rank += stats.production
rank += stats.science
rank += stats.culture