Mods can handle removing existing buildings

This commit is contained in:
Yair Morgenstern 2020-12-03 23:58:48 +02:00
parent c12afb4131
commit a9d36c073a
6 changed files with 16 additions and 5 deletions

View File

@ -87,7 +87,7 @@ Denounce ([numberOfTurns] turns) = Beschuldig ([numberOfTurns] rondes)
We will remember this. = We zullen dit onthouden.
[civName] has declared war on [targetCivName]! = [civName] heeft de oorlog verklaard aan [targetCivName]!
[civName] and [targetCivName] have signed the Peace Treaty! = [civName] en [targetCivName] hebben een vredesverdrag getekend!
[civName] and [targetCivName] have signed a Peace Treaty! = [civName] en [targetCivName] hebben een vredesverdrag getekend!
[civName] and [targetCivName] have signed the Declaration of Friendship! = [civName] en [targetCivName] hebben een vriendschapsovereenkomst getekend.
[civName] has denounced [targetCivName]! = [civName] heeft [targetCivName] beschuldigd!

View File

@ -79,7 +79,7 @@ Denounce ([numberOfTurns] turns) = Megvádolás ([numberOfTurns] kör)
We will remember this. = Emlékezni fogunk erre.
[civName] has declared war on [targetCivName]! = [civName] hadat üzent [targetCivName] ellen!
[civName] and [targetCivName] have signed the Peace Treaty! = [civName] és [targetCivName] aláírták a békeszerződést!
[civName] and [targetCivName] have signed a Peace Treaty! = [civName] és [targetCivName] aláírták a békeszerződést!
[civName] and [targetCivName] have signed the Declaration of Friendship! = [civName] és [targetCivName] aláírták a barátsgányilatkozatot!
[civName] has denounced [targetCivName]! = [civName] megvádolta a [targetCivName] nemzetet!

View File

@ -79,7 +79,7 @@ Denounce ([numberOfTurns] turns) = Hina ([numberOfTurns] giliran)
We will remember this. = Kami akan mengingat ini.
[civName] has declared war on [targetCivName]! = [civName] menyatakan perang kepada [targetCivName]!
[civName] and [targetCivName] have signed the Peace Treaty! = [civName] dan [targetCivName] menandatangani Perjanjian Perdamaian!
[civName] and [targetCivName] have signed a Peace Treaty! = [civName] dan [targetCivName] menandatangani Perjanjian Perdamaian!
[civName] and [targetCivName] have signed the Declaration of Friendship! = [civName] and [targetCivName] sudah menandatangani Deklarasi Pertemanan!
[civName] has denounced [targetCivName]! = [civName] telah menghina [targetCivName]!

View File

@ -126,7 +126,7 @@ We will remember this. = Kami akan ingat perkara ini
# Requires translation!
[civName] has declared war on [targetCivName]! =
# Requires translation!
[civName] and [targetCivName] have signed the Peace Treaty! =
[civName] and [targetCivName] have signed a Peace Treaty! =
# Requires translation!
[civName] and [targetCivName] have signed the Declaration of Friendship! =
# Requires translation!

View File

@ -80,7 +80,7 @@ Denounce ([numberOfTurns] turns) = Dar jāmee ye jahāni mahkoom kardan ([num
We will remember this. = Mā inrā be yād ḵāhim dāšt.
[civName] has declared war on [targetCivName]! = [civName] be [targetCivName] eelām jang karde ast!
[civName] and [targetCivName] have signed the Peace Treaty! = [civName] va [targetCivName] bā ham Moāhede ye Solh bastand!
[civName] and [targetCivName] have signed a Peace Treaty! = [civName] va [targetCivName] bā ham Moāhede ye Solh bastand!
[civName] and [targetCivName] have signed the Declaration of Friendship! = [civName] va [targetCivName] bā ham peymān doosti bastand!
[civName] has denounced [targetCivName]! = [civName], [targetCivName] rā mahkoom karde ast!

View File

@ -266,6 +266,17 @@ class GameInfo {
for (promotion in unit.promotions.promotions.toList())
if (!ruleSet.unitPromotions.containsKey(promotion))
unit.promotions.promotions.remove(promotion)
for (city in civilizations.asSequence().flatMap { it.cities.asSequence() }) {
for (building in city.cityConstructions.builtBuildings.toHashSet())
if (!ruleSet.buildings.containsKey(building))
city.cityConstructions.builtBuildings.remove(building)
for (building in city.cityConstructions.constructionQueue.toList())
if (!ruleSet.buildings.containsKey(building))
city.cityConstructions.constructionQueue.remove(building)
}
}
tileMap.setTransients(ruleSet)