mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-09 20:29:50 +07:00
Tiles outside the 3rd ring of a city can no longer be "worked" in the screen (before they could be chosen but didn't provide yields)
This commit is contained in:
parent
43ef42be5f
commit
ce7cb2ce17
@ -197,10 +197,14 @@ class CityScreen(internal val city: CityInfo) : CameraStageBaseScreen() {
|
||||
update()
|
||||
}
|
||||
|
||||
if (tileInfo.getCity()!=city) {
|
||||
val tilesInRange = city.getTilesInRange()
|
||||
if (tileInfo.getCity()!=city) { // outside of city
|
||||
group.setColor(0f, 0f, 0f, 0.3f)
|
||||
group.yieldGroup.isVisible = false
|
||||
} else if (!tileInfo.isCityCenter()) {
|
||||
} else if(tileInfo !in tilesInRange){ // within city but not close enough to be workable
|
||||
group.yieldGroup.isVisible = false
|
||||
}
|
||||
else if (!tileInfo.isCityCenter()) { // workable
|
||||
group.addPopulationIcon()
|
||||
group.populationImage!!.addClickListener {
|
||||
if (!tileInfo.isWorked() && cityInfo.population.getFreePopulation() > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user