mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 18:28:42 +07:00
'Years of peace' modifier reset when war is declared
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user