mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-13 01:08:25 +07:00
Fixed tests, since "1 radius with world wrap" does not fit 1-radius map tests
This commit is contained in:
@ -7,9 +7,9 @@ import com.unciv.models.metadata.BaseRuleset
|
|||||||
|
|
||||||
|
|
||||||
object MapShape {
|
object MapShape {
|
||||||
|
const val rectangular = "Rectangular"
|
||||||
const val hexagonal = "Hexagonal"
|
const val hexagonal = "Hexagonal"
|
||||||
const val flatEarth = "Flat Earth Hexagonal"
|
const val flatEarth = "Flat Earth Hexagonal"
|
||||||
const val rectangular = "Rectangular"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
object MapGeneratedMainType {
|
object MapGeneratedMainType {
|
||||||
|
@ -85,7 +85,7 @@ class TestGame {
|
|||||||
* Removes all existing tiles. All new tiles have terrain [baseTerrain]
|
* Removes all existing tiles. All new tiles have terrain [baseTerrain]
|
||||||
*/
|
*/
|
||||||
fun makeHexagonalMap(newRadius: Int, baseTerrain: String = Constants.desert) {
|
fun makeHexagonalMap(newRadius: Int, baseTerrain: String = Constants.desert) {
|
||||||
val newTileMap = TileMap(newRadius, ruleset, tileMap.mapParameters.worldWrap)
|
val newTileMap = TileMap(newRadius, ruleset, false)
|
||||||
newTileMap.mapParameters.mapSize = MapSize(newRadius)
|
newTileMap.mapParameters.mapSize = MapSize(newRadius)
|
||||||
|
|
||||||
for (row in tileMap.tileMatrix)
|
for (row in tileMap.tileMatrix)
|
||||||
|
Reference in New Issue
Block a user