I'm using this system for one of the factions in my mod. Basically almost each faction has a different armory they must build to get their units. This one faction, the Dunlendings, cannot build their own armory and their units are barbaric at best. But if they capture a town with an armory, then they can produce units using weapons and armor from that armory's faction.