Bazaar developer reference

CvPlayer::ChangeUnitGoldMaintenanceMod(int)

Defined in
CvPlayer.cpp, line 15541
Class
CvPlayer
Hook name
CivHooks::CvPlayer_ChangeUnitGoldMaintenanceMod

Hooks

static bool BeforeCvPlayer_ChangeUnitGoldMaintenanceMod(CvPlayer* self, int iChange);static void AfterCvPlayer_ChangeUnitGoldMaintenanceMod(CvPlayer* self, int iChange);static void ReplaceCvPlayer_ChangeUnitGoldMaintenanceMod(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_ChangeUnitGoldMaintenanceMod>(host, &BeforeCvPlayer_ChangeUnitGoldMaintenanceMod);CivRegisterAfter<CivHooks::CvPlayer_ChangeUnitGoldMaintenanceMod>(host, &AfterCvPlayer_ChangeUnitGoldMaintenanceMod);CivRegisterReplace<CivHooks::CvPlayer_ChangeUnitGoldMaintenanceMod>(host, &ReplaceCvPlayer_ChangeUnitGoldMaintenanceMod);

Code

15541void CvPlayer::ChangeUnitGoldMaintenanceMod(int iChange)15542{15543	if(iChange != 0)15544	{15545		m_iUnitGoldMaintenanceMod = (m_iUnitGoldMaintenanceMod + iChange);15546	}15547}

Calls

Called by