mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Add "Improvement" as an improvement filter (#9906)
* Add "Improvement" as an improvement filter * Update docs, change from non road improvement to all improvement
This commit is contained in:
parent
548b536818
commit
6e3d4d99e0
@ -26,7 +26,7 @@ class TileImprovement : RulesetStatsObject() {
|
|||||||
override fun getUniqueTarget() = UniqueTarget.Improvement
|
override fun getUniqueTarget() = UniqueTarget.Improvement
|
||||||
val shortcutKey: Char? = null
|
val shortcutKey: Char? = null
|
||||||
// This is the base cost. A cost of 0 means created instead of buildable.
|
// This is the base cost. A cost of 0 means created instead of buildable.
|
||||||
val turnsToBuild: Int = -1
|
var turnsToBuild: Int = -1
|
||||||
|
|
||||||
|
|
||||||
fun getTurnsToBuild(civInfo: Civilization, unit: MapUnit): Int {
|
fun getTurnsToBuild(civInfo: Civilization, unit: MapUnit): Int {
|
||||||
@ -89,6 +89,7 @@ class TileImprovement : RulesetStatsObject() {
|
|||||||
return when (filter) {
|
return when (filter) {
|
||||||
name -> true
|
name -> true
|
||||||
"All" -> true
|
"All" -> true
|
||||||
|
"Improvement" -> true // For situations involing tileFilter
|
||||||
"All Road" -> isRoad()
|
"All Road" -> isRoad()
|
||||||
"Great Improvement", "Great" -> isGreatImprovement()
|
"Great Improvement", "Great" -> isGreatImprovement()
|
||||||
in uniqueMap -> true
|
in uniqueMap -> true
|
||||||
|
@ -93,6 +93,7 @@ cityFilters allow us to choose the range of cities affected by this unique:
|
|||||||
- `in non-enemy foreign cities` - In all cities owned by civs other than you that you are not at war with
|
- `in non-enemy foreign cities` - In all cities owned by civs other than you that you are not at war with
|
||||||
- `in foreign cities`
|
- `in foreign cities`
|
||||||
- `in annexed cities`
|
- `in annexed cities`
|
||||||
|
- `in puppeted cities`
|
||||||
- `in holy cities`
|
- `in holy cities`
|
||||||
- `in City-State cities`
|
- `in City-State cities`
|
||||||
- `in cities following this religion` - Should only be used in pantheon/follower uniques for religions
|
- `in cities following this religion` - Should only be used in pantheon/follower uniques for religions
|
||||||
@ -192,9 +193,10 @@ So for instance, the unique "[stats] from [tileFilter] tiles [cityFilter]" can m
|
|||||||
## tileFilter
|
## tileFilter
|
||||||
|
|
||||||
Any of:
|
Any of:
|
||||||
- [terrainFilter](#terrainfilter) for this tile
|
- [terrainFilter](#terrainfilter) for this tile
|
||||||
- [improvementFilter](#improvementfilter) for this tile
|
- [improvementFilter](#improvementfilter) for this tile
|
||||||
- `unimproved' if no improvement exists
|
- `Improvement` for all improvements
|
||||||
|
- `unimproved` if no improvement exists
|
||||||
|
|
||||||
## terrainQuality
|
## terrainQuality
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user