Defensive pact notification fix (#10025)

* Fixed Civ getting two notifications of canceling their defensive pact when attacking.

* Added Defensive Pact related warnings to the Declare War popup

* Improved the warning to not include Civs that are already at war with the aggressor

* Improved the warning to not include Civs that are already at war with the aggressor

* Added defensive pact related warning translations

* Refactored removeDefensivePacts

* DeclareWarButton text now uses arrayListOf<String> and changed the for loop to a while loop

* Extracted the DeclareWarButton text to a new method.
This commit is contained in:
Oskar Niesen
2023-09-05 11:01:45 -05:00
committed by GitHub
parent a4cc566a8a
commit eec3732c96
3 changed files with 59 additions and 17 deletions

View File

@ -119,6 +119,9 @@ Peace =
Research Agreement =
Declare war =
Declare war on [civName]? =
[civName] will also join them in the war =
An unknown civilization will also join them in the war =
This will cancel your defensive pact with [civName] =
Go to on map =
Let's begin! =
[civName] has declared war on us! =