Skip to content

Commit

Permalink
Update opinion table tooltip for military promise
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Jul 5, 2024
1 parent 8cac442 commit 2bda8da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
5 changes: 1 addition & 4 deletions (1) Community Patch/Core Files/Text/CoreText_en_US.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3022,17 +3022,14 @@

<!-- Promises LUA -->
<Row Tag="TXT_KEY_DIPLO_MILITARY_PROMISE_TURNS">
<Text>You promised not to declare war on them for {1_Num} more {1_Num: plural 1?turn; other?turns;}.</Text>
<Text>You promised not to declare war on each other for {1_Num} more {1_Num: plural 1?turn; other?turns;}.</Text>
</Row>
<Row Tag="TXT_KEY_DIPLO_EXPANSION_PROMISE_TURNS">
<Text>You promised not to settle near them for {1_Num} more {1_Num: plural 1?turn; other?turns;}.</Text>
</Row>
<Row Tag="TXT_KEY_DIPLO_BORDER_PROMISE_TURNS">
<Text>You promised not to buy land near them for {1_Num} more {1_Num: plural 1?turn; other?turns;}.</Text>
</Row>
<Row Tag="TXT_KEY_DIPLO_AI_MILITARY_PROMISE_TURNS">
<Text>They promised not to declare war on you for {1_Num} more {1_Num: plural 1?turn; other?turns;}.</Text>
</Row>
<Row Tag="TXT_KEY_DIPLO_AI_EXPANSION_PROMISE_TURNS">
<Text>They promised not to settle near you for {1_Num} more {1_Num: plural 1?turn; other?turns;}.</Text>
</Row>
Expand Down
11 changes: 1 addition & 10 deletions CvGameCoreDLL_Expansion2/Lua/CvLuaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14371,7 +14371,7 @@ int CvLuaPlayer::lGetOpinionTable(lua_State* L)
////////////////////////////////////

// Human Promises
iValue = pDiplo->GetNumTurnsMilitaryPromise(ePlayer);
iValue = pDiplo->GetNumTurnsMilitaryPromise(ePlayer); // This is a mutual promise and the turn counter will always be the same on both sides
if (iValue > 0)
{
Opinion kOpinion;
Expand Down Expand Up @@ -14399,15 +14399,6 @@ int CvLuaPlayer::lGetOpinionTable(lua_State* L)
}

// AI Promises
iValue = GET_PLAYER(ePlayer).GetDiplomacyAI()->GetNumTurnsMilitaryPromise(pkPlayer->GetID());
if (iValue > 0)
{
Opinion kOpinion;
kOpinion.m_iValue = 0;
kOpinion.m_str = GetLocalizedText("TXT_KEY_DIPLO_AI_MILITARY_PROMISE_TURNS", iValue);
aOpinions.push_back(kOpinion);
}

iValue = GET_PLAYER(ePlayer).GetDiplomacyAI()->GetNumTurnsExpansionPromise(pkPlayer->GetID());
if (iValue > 0)
{
Expand Down

0 comments on commit 2bda8da

Please sign in to comment.