From 21883bf5c3a0a09c6cbb5e2acdfb2284dca8482c Mon Sep 17 00:00:00 2001
From: RecursiveVision <66801010+RecursiveVision@users.noreply.github.com>
Date: Fri, 5 Jul 2024 01:16:23 -0400
Subject: [PATCH] (7-85) Alert When AI's Non-Expansion Agreement Has Expired
https://forums.civfanatics.com/threads/7-85-alert-when-ais-non-expansion-agreement-has-expired.689274
---
(1) Community Patch/Core Files/Text/CoreText_en_US.xml | 6 ++++++
CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp | 7 +++++++
2 files changed, 13 insertions(+)
diff --git a/(1) Community Patch/Core Files/Text/CoreText_en_US.xml b/(1) Community Patch/Core Files/Text/CoreText_en_US.xml
index c704dc1b58..62cc9e1cd6 100644
--- a/(1) Community Patch/Core Files/Text/CoreText_en_US.xml
+++ b/(1) Community Patch/Core Files/Text/CoreText_en_US.xml
@@ -3862,6 +3862,12 @@
If you denounce them within the next {1_Num} {1_Num: plural 1?turn; other?turns;}, other civilizations might view you as a backstabber.
+
+ It has been many years since {1_CivDesc}'s promise to not settle near you. They consider that promise to be fulfilled.
+
+
+ {1_CivDesc} kept their expansion promise.
+
{1_CivName:textkey} and {2_CivName:textkey} have [COLOR_NEGATIVE_TEXT]broken[ENDCOLOR] their public Declaration of Friendship, citing diplomatic tension as the cause.
diff --git a/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp b/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp
index b3f19be897..2ddf1c6694 100644
--- a/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp
+++ b/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp
@@ -13481,6 +13481,13 @@ void CvDiplomacyAI::DoTestPromises()
CvString strSummary = GetLocalizedText("TXT_KEY_NOTIFICATION_EXPANSION_PROMISE_EXPIRED_S");
pNotifications->Add(NOTIFICATION_EXPANSION_PROMISE_EXPIRED, strBuffer, strSummary, -1, -1, GetID(), eLoopPlayer);
}
+ pNotifications = GetPlayer()->GetNotifications();
+ if (pNotifications)
+ {
+ CvString strBuffer = GetLocalizedText("TXT_KEY_NOTIFICATION_EXPANSION_PROMISE_EXPIRED_THEM", GET_PLAYER(eLoopPlayer).getCivilizationShortDescriptionKey());
+ CvString strSummary = GetLocalizedText("TXT_KEY_NOTIFICATION_EXPANSION_PROMISE_EXPIRED_THEM_S", GET_PLAYER(eLoopPlayer).getCivilizationShortDescriptionKey());
+ pNotifications->Add(NOTIFICATION_EXPANSION_PROMISE_EXPIRED, strBuffer, strSummary, -1, -1, eLoopPlayer, GetID());
+ }
}
}
else if (IsPlayerIgnoredExpansionPromise(eLoopPlayer))