Bazaar developer reference

CvPlayer::changeGetMinorFriendshipDecayMod(int)

Defined in
CvPlayer.cpp, line 16079
Class
CvPlayer
Hook name
CivHooks::CvPlayer_changeGetMinorFriendshipDecayMod

Hooks

static bool BeforeCvPlayer_changeGetMinorFriendshipDecayMod(CvPlayer* self, int iChange);static void AfterCvPlayer_changeGetMinorFriendshipDecayMod(CvPlayer* self, int iChange);static void ReplaceCvPlayer_changeGetMinorFriendshipDecayMod(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_changeGetMinorFriendshipDecayMod>(host, &BeforeCvPlayer_changeGetMinorFriendshipDecayMod);CivRegisterAfter<CivHooks::CvPlayer_changeGetMinorFriendshipDecayMod>(host, &AfterCvPlayer_changeGetMinorFriendshipDecayMod);CivRegisterReplace<CivHooks::CvPlayer_changeGetMinorFriendshipDecayMod>(host, &ReplaceCvPlayer_changeGetMinorFriendshipDecayMod);

Code

16079void CvPlayer::changeGetMinorFriendshipDecayMod(int iChange)16080{16081	if(iChange != 0)16082	{16083		m_iMinorFriendshipDecayMod += iChange;16084	}16085}

Calls

Called by