Can now use [stats] unique to add happiness globally

This commit is contained in:
Yair Morgenstern
2022-11-21 11:33:29 +02:00
parent 0cf5c33475
commit 8530de7de1
2 changed files with 13 additions and 0 deletions

View File

@ -46,6 +46,13 @@ class GlobalUniquesTests {
Assert.assertTrue(civInfo.statsForNextTurn.equals(Stats(gold=2f)))
}
@Test
fun statsHappinessNotOnBuilding() {
val civInfo = game.addCiv("[+7 Happiness]")
civInfo.updateStatsForNextTurn()
Assert.assertTrue(civInfo.happinessForNextTurn == civInfo.getDifficulty().baseHappiness + 7)
}
@Test
fun statsPerCity() {