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:
yairm210
2018-12-03 17:39:39 +02:00
committed by GitHub

View File

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