• Civilization 7 has been announced. For more info please check the forum here .

[DLL] (7-NS) Upgrading to unique unit with free promotion gives back one promotion

Status
Not open for further replies.
If this is possible and not too complex, it's good. I was coming with something a lot more complex. I just assumed promotions couldn't be altered to receive specific property outside their effects.
I'm more concerned about the memory impact.

Units have an array of all promotions in the game and whether they have them or not.

This would require adding a second array of all promotions specifying if they were obtained for free or not, or at least a second flag to the 'whether they have them or not' part.
 
I don't know if it is feasible, but reducing said array to only the pickable promotions would reduce the memory impact.
 
Status
Not open for further replies.
Top Bottom