the shape is calculated by comparation and then count from an item that u arelady now his shape. For example the shape of HeavyArmour is: 3 then u look in the Hum.wil for HeavyArmour, now from there u count till the next armour u see, for example DragonRobe is the 5th from Heavy then is 5 + 3 = 8
Also if u look in the db`s (M) and (F) have same shape: HeavyArmour(M) = 3 same as HeavyArmour(F). And DragonRobe(M) = 8 will be same as DragonRobe(F)
* The shapes are only examples look in ur db to see the real ones