What core and distro are you using? No idea how to help you unless I know that. And if you're not using the default distro, you would have to just search around for anything that had to do with combat. Look for code that checks armor ratings. Go over the documentation, specificly the object classes.