mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-01 10:25:57 +07:00
'Years of peace' modifier reset when war is declared
This commit is contained in:
parent
807444d2c5
commit
cb50732ec4
@ -58,7 +58,7 @@ class MainMenuScreen: CameraStageBaseScreen() {
|
||||
Actions.fadeOut(0f),
|
||||
Actions.run {
|
||||
mapHolder.apply {
|
||||
addTiles(this@MainMenuScreen.stage.width, this@MainMenuScreen.stage.height)
|
||||
addTiles(this@MainMenuScreen.stage.width/3, this@MainMenuScreen.stage.height/3)
|
||||
touchable = Touchable.disabled
|
||||
setScale(0.5f)
|
||||
}
|
||||
|
@ -481,6 +481,7 @@ class DiplomacyManager() {
|
||||
trades.clear()
|
||||
updateHasOpenBorders()
|
||||
|
||||
removeModifier(DiplomaticModifiers.YearsOfPeace)
|
||||
setFlag(DiplomacyFlags.DeclinedPeace, 10)/// AI won't propose peace for 10 turns
|
||||
setFlag(DiplomacyFlags.DeclaredWar, 10) // AI won't agree to trade for 10 turns
|
||||
removeFlag(DiplomacyFlags.BorderConflict)
|
||||
|
Loading…
Reference in New Issue
Block a user