Modifying DLL - Functions similar to GetGold and GetHappiness for culture & faith?

Decker87

Chieftain
Joined
Oct 28, 2010
Messages
46
I see that CvBuildingClasses.h declares a class called "CvBuildingEntry" which has many member functions used to get information about the building. For example GetGold() and GetHappiness() will tell you how much gold or happiness that building adds.

However, I don't see any such functions for culture, faith, science, food, etc. So my question is, given a CvBuildingEntry*, how can one determine how much culture, science, or food the building adds?
 
Food, production, gold, science, culture and faith are yields. You want to use the GetYieldChange(int i) function, where i is the yieldtype. See CvGameCoreEnums.h. For some reason they gave yields it's own enums file.
 
Back
Top Bottom