Bazaar developer reference

CvPlot::removeGoody()

Defined in
CvPlot.cpp, line 3708
Class
CvPlot
Hook name
CivHooks::CvPlot_removeGoody

Hooks

static bool BeforeCvPlot_removeGoody(CvPlot* self);static void AfterCvPlot_removeGoody(CvPlot* self);static void ReplaceCvPlot_removeGoody(void (*original)(CvPlot*), CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_removeGoody>(host, &BeforeCvPlot_removeGoody);CivRegisterAfter<CivHooks::CvPlot_removeGoody>(host, &AfterCvPlot_removeGoody);CivRegisterReplace<CivHooks::CvPlot_removeGoody>(host, &ReplaceCvPlot_removeGoody);

Code

3708void CvPlot::removeGoody()3709{3710	setImprovementType(NO_IMPROVEMENT);3711	// Make sure the player's redo their goody hut searches3712	for(int i = 0; i < MAX_PLAYERS; i++)3713	{3714		if(GET_PLAYER((PlayerTypes)i).isAlive())3715		{3716			GET_PLAYER((PlayerTypes)i).GetEconomicAI()->m_bExplorationPlotsDirty = true;3717		}3718	}3719}

Calls

Called by