Resource+Improvement is go!

Added resource-specific plantations by The Bucketeer
This commit is contained in:
Yair Morgenstern 2020-01-17 15:07:47 +02:00
parent db5c7234f3
commit 02def2ffa9
16 changed files with 281 additions and 198 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 409 B

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 862 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 B

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 316 KiB

After

Width:  |  Height:  |  Size: 323 KiB

View file

@ -195,6 +195,12 @@ open class TileGroup(var tileInfo: TileInfo, var tileSetStrings:TileSetStrings)
if (ImageGetter.imageExists(baseTerrainTileLocation)){
if(shouldShowImprovement){
val improvementImageLocation = tileSetStrings.getTile(tileInfo.improvement!!)
if(shouldShowResource){
// E.g. (Grassland, Plantation+Spices)
val improvementAndResourceImageLocation = improvementImageLocation+"+${tileInfo.resource}"
if(ImageGetter.imageExists(improvementAndResourceImageLocation))
return listOf(baseTerrainTileLocation,improvementAndResourceImageLocation)
}
// E.g. (Desert, Mine)
if(ImageGetter.imageExists(improvementImageLocation))
return listOf(baseTerrainTileLocation, improvementImageLocation)