Ballista replaces catapult, not horseman

When an improvement is under construction, you cannot pick to construct that improvement again
This commit is contained in:
Yair Morgenstern 2018-11-14 19:31:33 +02:00
parent deed7e7767
commit 640a3b873e
2 changed files with 5 additions and 2 deletions

View File

@ -130,7 +130,7 @@
name:"Ballista",
unitType:"Siege",
uniqueTo:"Rome",
replaces:"Horseman",
replaces:"Catapult",
movement:2,
strength:8,
rangedStrength:10,

View File

@ -29,7 +29,10 @@ class ImprovementPickerScreen(tileInfo: TileInfo) : PickerScreen() {
val regularImprovements = VerticalGroup()
regularImprovements.space(10f)
for (improvement in GameBasics.TileImprovements.values) {
if (!tileInfo.canBuildImprovement(improvement, civInfo) || improvement.name == tileInfo.improvement) continue
if (!tileInfo.canBuildImprovement(improvement, civInfo)) continue
if(improvement.name == tileInfo.improvement) continue
if(improvement.name==tileInfo.improvementInProgress) continue
val improvementButton = Button(skin)
if(improvement.name.startsWith("Remove"))