1package com.unciv.logic.civilization.managers
2
3import com.badlogic.gdx.math.Vector2
4import com.unciv.logic.map.HexCoord
5import com.unciv.testing.GdxTestRunner
6import com.unciv.testing.TestGame
7import org.junit.Assert.assertEquals
8import org.junit.Assert.assertTrue
9import org.junit.Before
10import org.junit.Test
…lines 11–118 unchanged (108 lines)
119 }
120
121 @Test
122 fun `should increase golden age cost with more cities`() {
123 // given
124 testGame.makeHexagonalMap(1)
125 testGame.addCity(civ, testGame.getTile(HexCoord.Zero), initialPopulation = 10)
126 val happinessRequiredForGoldenAgeOneCity = goldenAgeManager.happinessRequiredForNextGoldenAge()
127
128 // when
129 testGame.addCity(civ, testGame.getTile(1,0), initialPopulation = 10)
130
131 // then
132 val happinessRequiredForGoldenAgeTwoCities = goldenAgeManager.happinessRequiredForNextGoldenAge()
133 assertTrue(happinessRequiredForGoldenAgeOneCity < happinessRequiredForGoldenAgeTwoCities)
134 }
135
…lines 136–149 unchanged (14 lines)