mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
City button padding expanded, warrior now has 2 strength as it should
This commit is contained in:
parent
9978ec5264
commit
4de9ee106f
@ -27,6 +27,7 @@
|
|||||||
description: "A basic fighting unit",
|
description: "A basic fighting unit",
|
||||||
unitType:"Melee",
|
unitType:"Melee",
|
||||||
movement:2,
|
movement:2,
|
||||||
|
strength:2,
|
||||||
cost: 40,
|
cost: 40,
|
||||||
hurryCostModifier:20
|
hurryCostModifier:20
|
||||||
},
|
},
|
||||||
|
@ -17,9 +17,6 @@ class Unit : INamed, IConstruction {
|
|||||||
lateinit var unitType: UnitType
|
lateinit var unitType: UnitType
|
||||||
internal var unbuildable: Boolean = false // for special units like great people
|
internal var unbuildable: Boolean = false // for special units like great people
|
||||||
|
|
||||||
val isConstructable: Boolean
|
|
||||||
get() = !unbuildable
|
|
||||||
|
|
||||||
fun getMapUnit(): MapUnit {
|
fun getMapUnit(): MapUnit {
|
||||||
val unit = MapUnit()
|
val unit = MapUnit()
|
||||||
unit.name = name
|
unit.name = name
|
||||||
|
@ -57,7 +57,7 @@ class ConstructionPickerScreen(val city: CityInfo) : PickerScreen() {
|
|||||||
regularBuildings.addActor(productionTextButton)
|
regularBuildings.addActor(productionTextButton)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (unit in GameBasics.Units.values.filter { it.isConstructable }) {
|
for (unit in GameBasics.Units.values.filterNot { it.unbuildable }) {
|
||||||
units.addActor(getProductionButton(unit.name,
|
units.addActor(getProductionButton(unit.name,
|
||||||
unit.name + "\r\n" + cityConstructions.turnsToConstruction(unit.name) + " turns",
|
unit.name + "\r\n" + cityConstructions.turnsToConstruction(unit.name) + " turns",
|
||||||
unit.description, "Train " + unit.name))
|
unit.description, "Train " + unit.name))
|
||||||
|
@ -57,7 +57,7 @@ class WorldTileGroup(tileInfo: TileInfo) : TileGroup(tileInfo) {
|
|||||||
|
|
||||||
cityButton!!.run {
|
cityButton!!.run {
|
||||||
clear()
|
clear()
|
||||||
add(label).pad(5f)
|
add(label).pad(10f)
|
||||||
pack()
|
pack()
|
||||||
setOrigin(Align.center)
|
setOrigin(Align.center)
|
||||||
toFront()
|
toFront()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user