Hope someone sees this.
I am trying to code <PromotionStrongestUnit> for ProjectInfos. I've got it reading the XML just fine, but I want to search the units in the city that completed it and give the promotion to that unit (it's a one time promotion). If I can't find a unit there, I give it to the closest one this player owns.
I'm completely at a loss. I thought BuildingInfos in CvCity would help but it changes the free promotion count and that's not the same.
Could someone give me some pointers or show me a post/guide that would help me? I don't know enough about the DLL to know what to do next.
I am trying to code <PromotionStrongestUnit> for ProjectInfos. I've got it reading the XML just fine, but I want to search the units in the city that completed it and give the promotion to that unit (it's a one time promotion). If I can't find a unit there, I give it to the closest one this player owns.
I'm completely at a loss. I thought BuildingInfos in CvCity would help but it changes the free promotion count and that's not the same.
Could someone give me some pointers or show me a post/guide that would help me? I don't know enough about the DLL to know what to do next.