Bazaar developer reference

CvPlayer::ChangeBuildingGoldMaintenanceMod(int)

Defined in
CvPlayer.cpp, line 15526
Class
CvPlayer
Hook name
CivHooks::CvPlayer_ChangeBuildingGoldMaintenanceMod

Hooks

static bool BeforeCvPlayer_ChangeBuildingGoldMaintenanceMod(CvPlayer* self, int iChange);static void AfterCvPlayer_ChangeBuildingGoldMaintenanceMod(CvPlayer* self, int iChange);static void ReplaceCvPlayer_ChangeBuildingGoldMaintenanceMod(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_ChangeBuildingGoldMaintenanceMod>(host, &BeforeCvPlayer_ChangeBuildingGoldMaintenanceMod);CivRegisterAfter<CivHooks::CvPlayer_ChangeBuildingGoldMaintenanceMod>(host, &AfterCvPlayer_ChangeBuildingGoldMaintenanceMod);CivRegisterReplace<CivHooks::CvPlayer_ChangeBuildingGoldMaintenanceMod>(host, &ReplaceCvPlayer_ChangeBuildingGoldMaintenanceMod);

Code

15526void CvPlayer::ChangeBuildingGoldMaintenanceMod(int iChange)15527{15528	if(iChange != 0)15529	{15530		m_iBuildingGoldMaintenanceMod = (m_iBuildingGoldMaintenanceMod + iChange);15531	}15532}

Calls

Called by