Bazaar developer reference

CvPlayer::changeMinorGoldFriendshipMod(int)

Defined in
CvPlayer.cpp, line 16034
Class
CvPlayer
Hook name
CivHooks::CvPlayer_changeMinorGoldFriendshipMod

Hooks

static bool BeforeCvPlayer_changeMinorGoldFriendshipMod(CvPlayer* self, int iChange);static void AfterCvPlayer_changeMinorGoldFriendshipMod(CvPlayer* self, int iChange);static void ReplaceCvPlayer_changeMinorGoldFriendshipMod(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_changeMinorGoldFriendshipMod>(host, &BeforeCvPlayer_changeMinorGoldFriendshipMod);CivRegisterAfter<CivHooks::CvPlayer_changeMinorGoldFriendshipMod>(host, &AfterCvPlayer_changeMinorGoldFriendshipMod);CivRegisterReplace<CivHooks::CvPlayer_changeMinorGoldFriendshipMod>(host, &ReplaceCvPlayer_changeMinorGoldFriendshipMod);

Code

16034void CvPlayer::changeMinorGoldFriendshipMod(int iChange)16035{16036	if(iChange != 0)16037	{16038		m_iMinorGoldFriendshipMod += iChange;16039		CvAssert(getMinorGoldFriendshipMod() >= 0);16040	}16041}

Calls

Called by