Bazaar developer reference

CvTreasury::ChangeBaseBuildingGoldMaintenance(int)

Defined in
CvTreasury.cpp, line 791
Class
CvTreasury
Hook name
CivHooks::CvTreasury_ChangeBaseBuildingGoldMaintenance

Hooks

static bool BeforeCvTreasury_ChangeBaseBuildingGoldMaintenance(CvTreasury* self, int iChange);static void AfterCvTreasury_ChangeBaseBuildingGoldMaintenance(CvTreasury* self, int iChange);static void ReplaceCvTreasury_ChangeBaseBuildingGoldMaintenance(void (*original)(CvTreasury*, int), CvTreasury* self, int iChange);CivRegisterBefore<CivHooks::CvTreasury_ChangeBaseBuildingGoldMaintenance>(host, &BeforeCvTreasury_ChangeBaseBuildingGoldMaintenance);CivRegisterAfter<CivHooks::CvTreasury_ChangeBaseBuildingGoldMaintenance>(host, &AfterCvTreasury_ChangeBaseBuildingGoldMaintenance);CivRegisterReplace<CivHooks::CvTreasury_ChangeBaseBuildingGoldMaintenance>(host, &ReplaceCvTreasury_ChangeBaseBuildingGoldMaintenance);

Code

790/// What are our gold maintenance costs because of Buildings?791void CvTreasury::ChangeBaseBuildingGoldMaintenance(int iChange)792{793	SetBaseBuildingGoldMaintenance(GetBaseBuildingGoldMaintenance() + iChange);794}

Calls

Called by