There are two ways to make such a system.
1. Simply use a hashtable (or use item data) to save the item type, this needs to be done manually with every single item. Easier, but it takes time and it's boring.
2. Make a certain armor type be of a certain item class. Helmets are "permanent", shoulders are "Charged" etc.