Proper destruction notification for city states

Added Fur resource image
This commit is contained in:
Yair Morgenstern
2020-01-13 00:09:09 +02:00
parent 0d889989c6
commit 9a426318ba
5 changed files with 177 additions and 168 deletions

View File

@ -469,8 +469,10 @@ class CivilizationInfo {
fun destroy(){
val destructionText = if(isMajorCiv()) "The civilization of [$civName] has been destroyed!"
else "The City-State of [$civName] has been destroyed!"
for(civ in gameInfo.civilizations)
civ.addNotification("The civilization of [$civName] has been destroyed!", null, Color.RED)
civ.addNotification(destructionText, null, Color.RED)
getCivUnits().forEach { it.destroy() }
tradeRequests.clear() // if we don't do this then there could be resources taken by "pending" trades forever
for(diplomacyManager in diplomacy.values){