mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 02:42:16 -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",
|
||||
unitType:"Melee",
|
||||
movement:2,
|
||||
strength:2,
|
||||
cost: 40,
|
||||
hurryCostModifier:20
|
||||
},
|
||||
|
@ -17,9 +17,6 @@ class Unit : INamed, IConstruction {
|
||||
lateinit var unitType: UnitType
|
||||
internal var unbuildable: Boolean = false // for special units like great people
|
||||
|
||||
val isConstructable: Boolean
|
||||
get() = !unbuildable
|
||||
|
||||
fun getMapUnit(): MapUnit {
|
||||
val unit = MapUnit()
|
||||
unit.name = name
|
||||
|
@ -57,7 +57,7 @@ class ConstructionPickerScreen(val city: CityInfo) : PickerScreen() {
|
||||
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,
|
||||
unit.name + "\r\n" + cityConstructions.turnsToConstruction(unit.name) + " turns",
|
||||
unit.description, "Train " + unit.name))
|
||||
|
@ -57,7 +57,7 @@ class WorldTileGroup(tileInfo: TileInfo) : TileGroup(tileInfo) {
|
||||
|
||||
cityButton!!.run {
|
||||
clear()
|
||||
add(label).pad(5f)
|
||||
add(label).pad(10f)
|
||||
pack()
|
||||
setOrigin(Align.center)
|
||||
toFront()
|
||||
|
Loading…
x
Reference in New Issue
Block a user