Added 4-way tile images (base,feature,improvement,resource) by The Bucketeer
Fixed some issues with existing tile images
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1003 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 815 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 336 KiB After Width: | Height: | Size: 339 KiB |
@ -160,6 +160,13 @@ open class TileGroup(var tileInfo: TileInfo, var tileSetStrings:TileSetStrings)
|
||||
if (tileInfo.terrainFeature != null) {
|
||||
// e.g. Grassland+Forest
|
||||
val baseTerrainAndFeatureTileLocation = "$baseTerrainTileLocation+${tileInfo.terrainFeature}"
|
||||
if(shouldShowImprovement && shouldShowResource){
|
||||
// e.g. Grassland+Forest+Deer+Camp
|
||||
val baseFeatureImprovementAndResourceLocation =
|
||||
"$baseTerrainAndFeatureTileLocation+${tileInfo.improvement}+${tileInfo.resource}"
|
||||
if (ImageGetter.imageExists(baseFeatureImprovementAndResourceLocation))
|
||||
return listOf(baseFeatureImprovementAndResourceLocation)
|
||||
}
|
||||
if(shouldShowImprovement){
|
||||
// e.g. Grassland+Forest+Lumber mill
|
||||
val baseFeatureAndImprovementTileLocation = "$baseTerrainAndFeatureTileLocation+${tileInfo.improvement}"
|
||||
|