You can no longer have negative science per turn, even if you have a huge gold deficit (what does "negative science" even mean?)

This commit is contained in:
Yair Morgenstern 2018-06-08 13:19:42 +03:00
parent 83c235690a
commit c3e0d6ac2c

View file

@ -59,6 +59,7 @@ class CivilizationInfo {
statsForTurn.culture += statsForTurn.happiness / 2
if (statsForTurn.gold < 0) statsForTurn.science += statsForTurn.gold
if(statsForTurn.science<0) statsForTurn.science=0f
return statsForTurn
}