GetProductionTurnsLeft vs GetUnitProductionTurnsLeft

Thalassicus

Bytes and Nibblers
Joined
Nov 9, 2005
Messages
11,057
Location
Texas
Has anyone had experience with this class of functions:

city:GetUnitProductionTurnsLeft( unitID )
city:GetBuildingProductionTurnsLeft( buildingID )
city:GetProjectProductionTurnsLeft( projectID )
city:GetProcessProductionTurnsLeft( processID )

I'm merging the chaotic mess of food/prod/culture/etc yield functions into a unified generic function chain, to fix bugs and add new sources for the yields. I noticed they've got various "get X production turns left" functions... one general function, then one for units, buildings, project, processes... and I'm having difficulty reverse-engineering this batch of functions.

Edit: Nevermind, gradually figuring this out, stores each one separately... can generalize this by passing the table to use.
 
Back
Top Bottom