mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00
Merge pull request #298 from ninjatao/fix_great_person_choose
Can no longer choose Great War Infantry as free gp.
This commit is contained in:
@ -16,7 +16,11 @@ class GreatPersonPickerScreen : PickerScreen() {
|
||||
init {
|
||||
closeButton.isVisible=false
|
||||
rightSideButton.setText("Choose a free great person")
|
||||
for (unit in GameBasics.Units.values.filter { it.name.startsWith("Great") }) {
|
||||
for (unit in GameBasics.Units.values.filter { it.name.startsWith("Great Scientist")
|
||||
|| it.name.startsWith("Great Artist")
|
||||
|| it.name.startsWith("Great Engineer")
|
||||
|| it.name.startsWith("Great Merchant") })
|
||||
{
|
||||
val button = Button(skin)
|
||||
|
||||
button.add(ImageGetter.getUnitIcon(unit.name)).size(30f).pad(10f)
|
||||
|
Reference in New Issue
Block a user