mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-12 16:59:11 +07:00
last refactoring of terrain feature (#3702)
* last terrainFeature refactorings * cut down terrainFeature as much as possible * aerialDistanceTo fixed wrapped distance should only be considered on wrapped worlds * Adding spaces * fixed tests not compiling * prevent floodplains from spawning on oasis * Check if terrain feature can be placed on tile in editor * Adding reviewed changes
This commit is contained in:
@ -97,7 +97,8 @@ class UnitMovementAlgorithmsTests {
|
||||
@Test
|
||||
fun canNOTEnterIce() {
|
||||
tile.baseTerrain = Constants.ocean
|
||||
tile.terrainFeature = Constants.ice
|
||||
tile.terrainFeatures.clear()
|
||||
tile.terrainFeatures.add(Constants.ice)
|
||||
tile.setTransients()
|
||||
|
||||
for (type in UnitType.values()) {
|
||||
|
Reference in New Issue
Block a user