mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-12 16:59:11 +07:00
Ballista replaces catapult, not horseman
When an improvement is under construction, you cannot pick to construct that improvement again
This commit is contained in:
@ -130,7 +130,7 @@
|
|||||||
name:"Ballista",
|
name:"Ballista",
|
||||||
unitType:"Siege",
|
unitType:"Siege",
|
||||||
uniqueTo:"Rome",
|
uniqueTo:"Rome",
|
||||||
replaces:"Horseman",
|
replaces:"Catapult",
|
||||||
movement:2,
|
movement:2,
|
||||||
strength:8,
|
strength:8,
|
||||||
rangedStrength:10,
|
rangedStrength:10,
|
||||||
|
@ -29,7 +29,10 @@ class ImprovementPickerScreen(tileInfo: TileInfo) : PickerScreen() {
|
|||||||
val regularImprovements = VerticalGroup()
|
val regularImprovements = VerticalGroup()
|
||||||
regularImprovements.space(10f)
|
regularImprovements.space(10f)
|
||||||
for (improvement in GameBasics.TileImprovements.values) {
|
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)
|
val improvementButton = Button(skin)
|
||||||
|
|
||||||
if(improvement.name.startsWith("Remove"))
|
if(improvement.name.startsWith("Remove"))
|
||||||
|
Reference in New Issue
Block a user