City button padding expanded, warrior now has 2 strength as it should

This commit is contained in:
Yair Morgenstern 2018-04-08 16:13:54 +03:00
parent 9978ec5264
commit 4de9ee106f
4 changed files with 3 additions and 5 deletions

View File

@ -27,6 +27,7 @@
description: "A basic fighting unit",
unitType:"Melee",
movement:2,
strength:2,
cost: 40,
hurryCostModifier:20
},

View File

@ -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

View File

@ -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))

View File

@ -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()