Command to get Production in a city

Starrynite120

Prince
Joined
Jul 15, 2015
Messages
472
What is the command that gives you how much production a city is giving? City:GetProduction gives you the progress towards whatever you're building, but I want the production yield.

Also, how do I get your energy per turn instead of how much you have amassed? Player:GetEnergy just gives you your total.
 
The command to get Energy per turn is:
Code:
player:CalculateGoldRate()
Yes, that is Gold not Energy. I guess it didn't get swept up in the find replace.
 
Great, thanks. Do you know about getting production per city? Like I said, getproduction gets how much you've invested in whatever you're building not your yield.
 
CityView.lua uses city:GetYieldRate(YieldTypes.YIELD_PRODUCTION)
 
Top Bottom