Announcement

Collapse
No announcement yet.

City culture function?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • City culture function?

    Hi guys, after running around the SDK for a few hours I am a bit stumped. What I am looking for is the function (or functions) that calculates how much culture a city produces in a turn and where it then adds to the stock of culture for that city.

    I have found "setCulture" and "setCultureTimes100" in CvCity but can't seem to find where these are called. What I am looking for is where the code steps through the list of buildings and adds up all the culture being produced for the turn and then calls one of these functions (or one of their callers).

    Any ideas?

  • #2
    I just finished some testing and I worked it all out.

    I still don't know how/where culture per turn is calculated for a city but I do know that changeCultureTimes100 is the function used to add to the stock of culture (ultimately spilling out into surrounding plots). In general it is called from CvCity::doCulture() as part of the end of turn sequence.

    Comment

    Working...
    X