Category talk:Armor

On multiple occasions I have experienced different behaviour than what is described in the calculations section so I looked at the code. According to the ApplyDamage function in inventory.lua, equipslots are iterated with 'pairs' which is just a wrapper for 'next'. The order next returns key - value pairs in is non-deterministic, so there should be no way to tell what armor piece takes damage first. Can anybody chime in on this?