Fix item detection to ignore damage values for weapons/armor