City-state music plays when first meeting them (#9026)

This commit is contained in:
Skekdog 2023-03-25 18:35:18 +00:00 committed by GitHub
parent 09cff6e55f
commit 2d793f8f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,13 +92,13 @@ class AlertPopup(val worldScreen: WorldScreen, val popupAlert: PopupAlert): Popu
val civInfo = worldScreen.gameInfo.getCivilization(popupAlert.value)
val nation = civInfo.nation
addLeaderName(civInfo)
music.chooseTrack(civInfo.civName, MusicMood.themeOrPeace, MusicTrackChooserFlags.setSpecific)
if (civInfo.isCityState()) {
addGoodSizedLabel("We have encountered the City-State of [${nation.name}]!").row()
add(getCloseButton("Excellent!"))
} else {
addGoodSizedLabel(nation.introduction).row()
add(getCloseButton("A pleasure to meet you."))
music.chooseTrack(civInfo.civName, MusicMood.themeOrPeace, MusicTrackChooserFlags.setSpecific)
}
}
AlertType.CityConquered -> {