Skip to content

Commit

Permalink
Change Influence decay under 100
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Sep 12, 2023
1 parent 660d9d3 commit f2f4a74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ WHERE Type = 'BUILDING_WAT';

-- Boost UA
UPDATE Traits
SET InfluenceMeetCS = '42'
SET InfluenceMeetCS = '40'
WHERE Type = 'TRAIT_CITY_STATE_BONUSES';

UPDATE Traits
Expand Down
2 changes: 1 addition & 1 deletion (2) Vox Populi/Balance Changes/Text/en_US/CivText.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ SET Text = 'Powerful Medieval Mounted Unit, weak to Pikemen. Only the Siamese ma
WHERE Tag = 'TXT_KEY_UNIT_HELP_SIAMESE_WARELEPHANT';

UPDATE Language_en_US
SET Text = '[ICON_INFLUENCE] Influence with [ICON_CITY_STATE] City-States starts at 42. +100% yields from Friendly and Allied [ICON_CITY_STATE] City-States. +25% to [ICON_STRENGTH] Combat Strength of Allied [ICON_CITY_STATE] City-State [ICON_CAPITAL] Capitals. +10 Experience to Units gifted by [ICON_CITY_STATE] City-States.'
SET Text = '[ICON_INFLUENCE] Influence with [ICON_CITY_STATE] City-States starts at 40. +100% yields from Friendly and Allied [ICON_CITY_STATE] City-States. +25% to [ICON_STRENGTH] Combat Strength of Allied [ICON_CITY_STATE] City-State [ICON_CAPITAL] Capitals. +10 Experience to Units gifted by [ICON_CITY_STATE] City-States.'
WHERE Tag = 'TXT_KEY_TRAIT_CITY_STATE_BONUSES';

--------------------
Expand Down
7 changes: 4 additions & 3 deletions CvGameCoreDLL_Expansion2/CvMinorCivAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11628,10 +11628,11 @@ int CvMinorCivAI::GetFriendshipChangePerTurnTimes100(PlayerTypes ePlayer)
double dExtraDecay = pow(dInfluenceAboveRestingPoint, dExponent) * -100;
iChangeThisTurn += (int)dExtraDecay;
}
else
else if (iCurrentInfluence - iRestingPoint > 5000)
{
// If below 100 over resting point, but still over, then extra decay = (Influence over resting point)% of -1. So, 5 over resting point = -0.05 decay
int iExtraDecay = (iCurrentInfluence - iRestingPoint) / -100;
// If above 50 over resting point, then extra decay = -0.02 per point of Influence above 50, until 100 is reached
int iAmountOver50 = iCurrentInfluence - iRestingPoint - 5000;
int iExtraDecay = iAmountOver50 / -50;
iChangeThisTurn += iExtraDecay;
}
}
Expand Down

0 comments on commit f2f4a74

Please sign in to comment.