Rename "Damage_type type" to "Damage_type damtype" in take_damage() and absorb_damage() - since Monster overloads these, and Monster has its own variable named "type".