mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-09 10:29:02 +07:00
You will always generate at least 1 science per turn, so that you don't get strange numbers on the Tech button
This commit is contained in:
parent
0edbaac53d
commit
b255b8cf15
@ -59,7 +59,11 @@ class CivilizationInfo {
|
||||
statsForTurn.culture += statsForTurn.happiness / 2
|
||||
|
||||
if (statsForTurn.gold < 0) statsForTurn.science += statsForTurn.gold
|
||||
if(statsForTurn.science<0) statsForTurn.science=0f
|
||||
|
||||
// if we have - or 0, then the techs will never be complete and the tech button
|
||||
// will show a negative number of turns and int.max, respectively
|
||||
if(statsForTurn.science<1) statsForTurn.science=1f
|
||||
|
||||
return statsForTurn
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user