Skip to content

Commit

Permalink
(7-85) Alert When AI's Non-Expansion Agreement Has Expired
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Jul 5, 2024
1 parent 2134f89 commit 21883bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions (1) Community Patch/Core Files/Text/CoreText_en_US.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3862,6 +3862,12 @@
<Row Tag="TXT_KEY_DIPLO_BACKSTAB_WARNING_DENOUNCE_ONLY_TURNS">
<Text>If you denounce them within the next {1_Num} {1_Num: plural 1?turn; other?turns;}, other civilizations might view you as a backstabber.</Text>
</Row>
<Row Tag="TXT_KEY_NOTIFICATION_EXPANSION_PROMISE_EXPIRED_THEM">
<Text>It has been many years since {1_CivDesc}'s promise to not settle near you. They consider that promise to be fulfilled.</Text>
</Row>
<Row Tag="TXT_KEY_NOTIFICATION_EXPANSION_PROMISE_EXPIRED_THEM_S">
<Text>{1_CivDesc} kept their expansion promise.</Text>
</Row>
<Row Tag="TXT_KEY_NOTIFICATION_DOF_BROKEN">
<Text>{1_CivName:textkey} and {2_CivName:textkey} have [COLOR_NEGATIVE_TEXT]broken[ENDCOLOR] their public Declaration of Friendship, citing diplomatic tension as the cause.</Text>
</Row>
Expand Down
7 changes: 7 additions & 0 deletions CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 21883bf

Please sign in to comment.