From 26afb16b6bb38101e3b8afbd2a28c0a9e86fa0b8 Mon Sep 17 00:00:00 2001 From: k4zoo <70358219+k4zoo@users.noreply.github.com> Date: Sun, 24 Jan 2021 01:12:15 +0800 Subject: [PATCH] Update TileInfo.kt (#3557) My first real pull request :P. I saw ResourceType.Luxury and ResourceType.Bonus being used in MapGenerator.kt so I thought why not make them accessible as a parameter for uniques? --- core/src/com/unciv/logic/map/TileInfo.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/map/TileInfo.kt b/core/src/com/unciv/logic/map/TileInfo.kt index 3084f4362c..1ffb48e13e 100644 --- a/core/src/com/unciv/logic/map/TileInfo.kt +++ b/core/src/com/unciv/logic/map/TileInfo.kt @@ -208,6 +208,8 @@ open class TileInfo { if (matchesUniqueFilter(tileType) || (resource == tileType && hasViewableResource(observingCiv)) || (tileType == "Strategic resource" && hasViewableResource(observingCiv) && getTileResource().resourceType == ResourceType.Strategic) + || (tileType == "Luxury resource" && hasViewableResource(observingCiv) && getTileResource().resourceType == ResourceType.Luxury) + || (tileType == "Bonus resource" && hasViewableResource(observingCiv) && getTileResource().resourceType == ResourceType.Bonus) || (tileType == "Water resource" && isWater && hasViewableResource(observingCiv)) ) stats.add(unique.stats) } @@ -532,4 +534,4 @@ open class TileInfo { && (terrainFeature == Constants.jungle || terrainFeature == Constants.forest) && isFriendlyTerritory(civInfo) //endregion -} \ No newline at end of file +}