Add a hash function to Weapon