mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 22:37:02 -04:00
Using nuclear weapons has large diplomatic reprecussions
This commit is contained in:
parent
736edb5069
commit
02501793b3
@ -792,7 +792,11 @@
|
|||||||
Czech:"Vaše arogantní požadavky jsou dalším důkazem vaší zkaženosti"
|
Czech:"Vaše arogantní požadavky jsou dalším důkazem vaší zkaženosti"
|
||||||
German:"Ihre arroganten Forderungen sind geschmacklos."
|
German:"Ihre arroganten Forderungen sind geschmacklos."
|
||||||
Korean:"이치에 맞지 않는 요구를 하고 있군요."
|
Korean:"이치에 맞지 않는 요구를 하고 있군요."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"Your use of nuclear weapons is disgusting!": {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
////// City-States Types
|
////// City-States Types
|
||||||
|
@ -7,6 +7,7 @@ import com.unciv.logic.automation.UnitAutomation
|
|||||||
import com.unciv.logic.city.CityInfo
|
import com.unciv.logic.city.CityInfo
|
||||||
import com.unciv.logic.civilization.AlertType
|
import com.unciv.logic.civilization.AlertType
|
||||||
import com.unciv.logic.civilization.PopupAlert
|
import com.unciv.logic.civilization.PopupAlert
|
||||||
|
import com.unciv.logic.civilization.diplomacy.DiplomaticModifiers
|
||||||
import com.unciv.logic.map.RoadStatus
|
import com.unciv.logic.map.RoadStatus
|
||||||
import com.unciv.logic.map.TileInfo
|
import com.unciv.logic.map.TileInfo
|
||||||
import com.unciv.models.gamebasics.unit.UnitType
|
import com.unciv.models.gamebasics.unit.UnitType
|
||||||
@ -317,6 +318,11 @@ class Battle(val gameInfo:GameInfo) {
|
|||||||
tile.roadStatus = RoadStatus.None
|
tile.roadStatus = RoadStatus.None
|
||||||
if (tile.isLand) tile.terrainFeature = "Fallout"
|
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) {
|
private fun tryInterceptAirAttack(attacker:MapUnitCombatant, defender: ICombatant) {
|
||||||
|
@ -44,6 +44,7 @@ enum class DiplomaticModifiers{
|
|||||||
RefusedToNotSettleCitiesNearUs,
|
RefusedToNotSettleCitiesNearUs,
|
||||||
BetrayedPromiseToNotSettleCitiesNearUs,
|
BetrayedPromiseToNotSettleCitiesNearUs,
|
||||||
UnacceptableDemands,
|
UnacceptableDemands,
|
||||||
|
UsedNuclearWeapons,
|
||||||
|
|
||||||
YearsOfPeace,
|
YearsOfPeace,
|
||||||
SharedEnemy,
|
SharedEnemy,
|
||||||
|
@ -276,6 +276,7 @@ class DiplomacyScreen(val viewingCiv:CivilizationInfo):CameraStageBaseScreen() {
|
|||||||
RefusedToNotSettleCitiesNearUs -> "You refused to stop settling cities near us"
|
RefusedToNotSettleCitiesNearUs -> "You refused to stop settling cities near us"
|
||||||
FulfilledPromiseToNotSettleCitiesNearUs -> "You fulfilled your promise 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"
|
UnacceptableDemands -> "Your arrogant demands are in bad taste"
|
||||||
|
UsedNuclearWeapons -> "Your use of nuclear weapons is disgusting!"
|
||||||
}
|
}
|
||||||
text = text.tr() + " "
|
text = text.tr() + " "
|
||||||
if (modifier.value > 0) text += "+"
|
if (modifier.value > 0) text += "+"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user