Using nuclear weapons has large diplomatic reprecussions

This commit is contained in:
Yair Morgenstern 2019-12-08 11:50:30 +02:00
parent 736edb5069
commit 02501793b3
4 changed files with 13 additions and 1 deletions

View file

@ -792,7 +792,11 @@
Czech:"Vaše arogantní požadavky jsou dalším důkazem vaší zkaženosti"
German:"Ihre arroganten Forderungen sind geschmacklos."
Korean:"이치에 맞지 않는 요구를 하고 있군요."
}
}
"Your use of nuclear weapons is disgusting!": {
}
////// City-States Types

View file

@ -7,6 +7,7 @@ import com.unciv.logic.automation.UnitAutomation
import com.unciv.logic.city.CityInfo
import com.unciv.logic.civilization.AlertType
import com.unciv.logic.civilization.PopupAlert
import com.unciv.logic.civilization.diplomacy.DiplomaticModifiers
import com.unciv.logic.map.RoadStatus
import com.unciv.logic.map.TileInfo
import com.unciv.models.gamebasics.unit.UnitType
@ -317,6 +318,11 @@ class Battle(val gameInfo:GameInfo) {
tile.roadStatus = RoadStatus.None
if (tile.isLand) tile.terrainFeature = "Fallout"
}
for(civ in attacker.getCivInfo().getKnownCivs()){
civ.getDiplomacyManager(attacker.getCivInfo())
.setModifier(DiplomaticModifiers.UsedNuclearWeapons,-50f)
}
}
private fun tryInterceptAirAttack(attacker:MapUnitCombatant, defender: ICombatant) {

View file

@ -44,6 +44,7 @@ enum class DiplomaticModifiers{
RefusedToNotSettleCitiesNearUs,
BetrayedPromiseToNotSettleCitiesNearUs,
UnacceptableDemands,
UsedNuclearWeapons,
YearsOfPeace,
SharedEnemy,

View file

@ -276,6 +276,7 @@ class DiplomacyScreen(val viewingCiv:CivilizationInfo):CameraStageBaseScreen() {
RefusedToNotSettleCitiesNearUs -> "You refused to stop settling cities near us"
FulfilledPromiseToNotSettleCitiesNearUs -> "You fulfilled your promise to stop settling cities near us!"
UnacceptableDemands -> "Your arrogant demands are in bad taste"
UsedNuclearWeapons -> "Your use of nuclear weapons is disgusting!"
}
text = text.tr() + " "
if (modifier.value > 0) text += "+"