So if I write a trigger and I want to know how much production it will take to finish whatever item is the first in the queue how do I check this? Note I do not want how much gold it will take to rush buy the item. That's easy to find so obviously not something I'd ask for.
Presuming I knew what type of item it was
(building, buildingunit, buildingendgame, buildingwonder)
Then I could take the city.overtimecost and
divide by:
BUILDING_RUSH_MODIFIER
UNIT_RUSH_MODIFIER
END_GAME_RUSH_MODIFIER or
WONDER_RUSH_MODIFER respectively
(assuming I have access to these values)
However there is no flag to tell me what type of unit is in the queue and I do not want to trigger the above values trigger. My trigger occurs when a UI component is clicked not when the build queue is set.
Are these values set to some defalut when they are moved out of the first position in the queue (by completion or by inserting something else)?
Any ideas?
Presuming I knew what type of item it was
(building, buildingunit, buildingendgame, buildingwonder)
Then I could take the city.overtimecost and
divide by:
BUILDING_RUSH_MODIFIER
UNIT_RUSH_MODIFIER
END_GAME_RUSH_MODIFIER or
WONDER_RUSH_MODIFER respectively
(assuming I have access to these values)
However there is no flag to tell me what type of unit is in the queue and I do not want to trigger the above values trigger. My trigger occurs when a UI component is clicked not when the build queue is set.
Are these values set to some defalut when they are moved out of the first position in the queue (by completion or by inserting something else)?
Any ideas?