Skip to content

Commit

Permalink
fix chanceries
Browse files Browse the repository at this point in the history
  • Loading branch information
ilteroi authored and RecursiveVision committed Jun 25, 2024
1 parent a57ceeb commit 0620ac6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CvGameCoreDLL_Expansion2/CvCity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25134,7 +25134,8 @@ int CvCity::GetBaseYieldRateFromCSAlliance(YieldTypes eIndex) const
iValue /= 100;
}

return iValue;
int iBonus = GetYieldPerAlly(eIndex) * GET_PLAYER(getOwner()).GetNumCSAllies();
return iValue + iBonus;
}
// --------------------------------------------------------------------------------
/// Base yield rate from CS Alliances
Expand Down Expand Up @@ -25181,7 +25182,8 @@ int CvCity::GetBaseYieldRateFromCSFriendship(YieldTypes eIndex) const
iValue /= 100;
}

return iValue;
int iBonus = GetYieldPerFriend(eIndex) * GET_PLAYER(getOwner()).GetNumCSFriends();
return iValue + iBonus;

}
void CvCity::ChangeBaseYieldRateFromCSFriendship(YieldTypes eIndex, int iChange)
Expand Down Expand Up @@ -31153,7 +31155,7 @@ bool CvCity::CrosscheckYieldsFromMinors()
}

//bonuses based on minor traits (currently food only). do not consider any major-trait specific modifiers here!
if (eYield == YIELD_FOOD)
if (eYield == YIELD_FOOD && pMinorLoop->GetTrait() == MINOR_CIV_TRAIT_MARITIME)
{
if (isCapital())
{
Expand Down

0 comments on commit 0620ac6

Please sign in to comment.