This commit is contained in:
YueR 2019-10-05 23:52:56 +08:00
parent 3efde6b46f
commit e5732449b0
3 changed files with 6 additions and 6 deletions

View File

@ -417,7 +417,7 @@ class CivilizationInfo {
fun addGreatPerson(greatPerson: String, city:CityInfo) {
placeUnitNearTile(city.location, greatPerson)
addNotification("A [$greatPerson] has been born!".tr(), city.location, Color.GOLD)
addNotification("A [$greatPerson] has been born!", city.location, Color.GOLD)
}
fun placeUnitNearTile(location: Vector2, unitName: String): MapUnit? {
@ -456,7 +456,7 @@ class CivilizationInfo {
.filter { !it.unitType.isCivilian() && it.unitType.isLandUnit() }
.random()
placeUnitNearTile(city.location, militaryUnit.name)
addNotification("[${otherCiv.civName}] gave us a [${militaryUnit.name}] as gift near [${city.name}]!".tr(), null, Color.GREEN)
addNotification("[${otherCiv.civName}] gave us a [${militaryUnit.name}] as gift near [${city.name}]!", null, Color.GREEN)
}
//endregion

View File

@ -139,9 +139,9 @@ class TechManager {
val currentEra = civInfo.getEra()
if (previousEra < currentEra) {
civInfo.addNotification("You have entered the [$currentEra era]!".tr(), null, Color.GOLD)
civInfo.addNotification("You have entered the [$currentEra era]!", null, Color.GOLD)
GameBasics.PolicyBranches.values.filter { it.era == currentEra }
.forEach { civInfo.addNotification("[" + it.name + "] policy branch unlocked!".tr(), null, Color.PURPLE) }
.forEach { civInfo.addNotification("[" + it.name + "] policy branch unlocked!", null, Color.PURPLE) }
}
val revealedResource = GameBasics.TileResources.values.firstOrNull { techName == it.revealedBy }

View File

@ -185,8 +185,8 @@ class DiplomacyManager() {
trades.remove(trade)
val otherCivTrades = otherCiv().getDiplomacyManager(civInfo).trades
otherCivTrades.removeAll{ it.equals(trade.reverse()) }
civInfo.addNotification("One of our trades with [$otherCivName] has been cut short".tr(),null, Color.GOLD)
otherCiv().addNotification("One of our trades with [${civInfo.civName}] has been cut short".tr(),null, Color.GOLD)
civInfo.addNotification("One of our trades with [$otherCivName] has been cut short",null, Color.GOLD)
otherCiv().addNotification("One of our trades with [${civInfo.civName}] has been cut short",null, Color.GOLD)
}
}
}