mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 05:09:25 +07:00
Give food a little bit more weight.
This commit is contained in:
@ -35,8 +35,8 @@ class Automation {
|
|||||||
|
|
||||||
fun rankStatsValue(stats: Stats, civInfo: CivilizationInfo): Float {
|
fun rankStatsValue(stats: Stats, civInfo: CivilizationInfo): Float {
|
||||||
var rank = 0.0f
|
var rank = 0.0f
|
||||||
if (stats.food <= 2) rank += stats.food
|
if (stats.food <= 2) rank += (stats.food * 1.2f) //food get more value to kepp city growing
|
||||||
else rank += (2 + (stats.food - 2) / 2) // 1 point for each food up to 2, from there on half a point
|
else rank += (2.4f + (stats.food - 2) / 2) // 1.2 point for each food up to 2, from there on half a point
|
||||||
|
|
||||||
if (civInfo.gold < 0 && civInfo.getStatsForNextTurn().gold <= 0) rank += stats.gold
|
if (civInfo.gold < 0 && civInfo.getStatsForNextTurn().gold <= 0) rank += stats.gold
|
||||||
else rank += stats.gold / 2
|
else rank += stats.gold / 2
|
||||||
|
Reference in New Issue
Block a user