Hello, I'm not sure if this is where I should be posting this, but I want to know where I can find the code that determines when the Upgrade Unit button shows up, or the unit upgrade code (not the price code). In vanilla the button shows up when u have the tech, the money and the resource (if applicable). I want to add an extra requirement where the unit requires a certain lvl or amount of exp to upgrade. I want to do this because I want it so that like in mount and blade warband you need to train a unit to get it from peasant to knight, sort of thing. Thank you to anyone who responds.