mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 13:18:56 +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.fadeOut(0f),
|
||||||
Actions.run {
|
Actions.run {
|
||||||
mapHolder.apply {
|
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
|
touchable = Touchable.disabled
|
||||||
setScale(0.5f)
|
setScale(0.5f)
|
||||||
}
|
}
|
||||||
|
@ -481,6 +481,7 @@ class DiplomacyManager() {
|
|||||||
trades.clear()
|
trades.clear()
|
||||||
updateHasOpenBorders()
|
updateHasOpenBorders()
|
||||||
|
|
||||||
|
removeModifier(DiplomaticModifiers.YearsOfPeace)
|
||||||
setFlag(DiplomacyFlags.DeclinedPeace, 10)/// AI won't propose peace for 10 turns
|
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
|
setFlag(DiplomacyFlags.DeclaredWar, 10) // AI won't agree to trade for 10 turns
|
||||||
removeFlag(DiplomacyFlags.BorderConflict)
|
removeFlag(DiplomacyFlags.BorderConflict)
|
||||||
|
Reference in New Issue
Block a user