Skip to content

Commit

Permalink
Fix no Anti-Warmonger Fervor in ranged combat
Browse files Browse the repository at this point in the history
Clarify Iron Curtain text
  • Loading branch information
RecursiveVision committed Oct 14, 2023
1 parent 290cfcf commit 21ed36e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ SET Text = '[COLOR_POSITIVE_TEXT]Hero of the People[ENDCOLOR]: [ICON_GREAT_PEOPL
WHERE Tag = 'TXT_KEY_POLICY_HERO_OF_THE_PEOPLE_HELP';

UPDATE Language_en_US
SET Text = '[COLOR_POSITIVE_TEXT]Iron Curtain[ENDCOLOR]: Free Courthouse upon city capture and immediate annexation. +200% [ICON_FOOD] Food or [ICON_PRODUCTION] Production from Internal Trade Routes. [ICON_CONNECTED] City connections generate +5 [ICON_GOLD] Gold and [ICON_PRODUCTION] Production.'
SET Text = '[COLOR_POSITIVE_TEXT]Iron Curtain[ENDCOLOR]: Free Courthouse upon immediate City annexation. +200% [ICON_FOOD] Food or [ICON_PRODUCTION] Production from Internal Trade Routes. [ICON_CONNECTED] City connections generate +5 [ICON_GOLD] Gold and [ICON_PRODUCTION] Production.'
WHERE Tag = 'TXT_KEY_POLICY_IRON_CURTAIN_HELP';

UPDATE Language_en_US
Expand Down
8 changes: 1 addition & 7 deletions CvGameCoreDLL_Expansion2/CvPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30012,14 +30012,8 @@ void CvPlayer::DoGreatPersonExpended(UnitTypes eGreatPersonUnit)
{
// Gold gained
int iExpendGold = GetGreatPersonExpendGold();
if(iExpendGold > 0)
if (iExpendGold > 0)
{
#if defined(MOD_BALANCE_CORE)
iExpendGold *= GC.getGame().getGameSpeedInfo().getInstantYieldPercent();
iExpendGold /= 100;
#endif
GetTreasury()->ChangeGold(iExpendGold);

if (MOD_API_ACHIEVEMENTS && isHuman() && !GC.getGame().isGameMultiPlayer() && GET_PLAYER(GC.getGame().getActivePlayer()).isLocalPlayer())
{
// Update Steam stat and check achievement
Expand Down
8 changes: 5 additions & 3 deletions CvGameCoreDLL_Expansion2/CvUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16700,11 +16700,9 @@ int CvUnit::GetGenericMeleeStrengthModifier(const CvUnit* pOtherUnit, const CvPl
if(kPlayer.isGoldenAge())
iModifier += kPlayer.GetPlayerTraits()->GetGoldenAgeCombatModifier();

//Domination Victory -- If a player owns more than one capital, your troops fight a % better as a result (% = % of global capitals owned).
// Anti-Warmonger Fervor
if (pOtherUnit != NULL)
{
iModifier += GetResistancePower(pOtherUnit);
}

////////////////////////
// KNOWN BATTLE PLOT
Expand Down Expand Up @@ -17403,6 +17401,10 @@ int CvUnit::GetMaxRangedCombatStrength(const CvUnit* pOtherUnit, const CvCity* p
if(kPlayer.isGoldenAge())
iModifier += pTraits->GetGoldenAgeCombatModifier();

// Anti-Warmonger Fervor
if (pOtherUnit != NULL)
iModifier += GetResistancePower(pOtherUnit);

//resource monopolies
iModifier += GET_PLAYER(getOwner()).GetCombatAttackBonusFromMonopolies();

Expand Down

0 comments on commit 21ed36e

Please sign in to comment.