dam_class dam_type;, right? dam_type is used after it's declared as a dam_class, so perhaps I could use weap_material as a type, then declare in bool damage weap_material weap_material_type, or something, right?
obj = get_eq_char(ch, WEAR_WIELD);
obj = obj->material;
weap_material_type = obj->material;
obj = get_eq_char(ch, WEAR_WIELD);
obj = obj->material;
weap_material_type = obj->material;
In defines.h I defined weapon materials like so:
And in fight.c the code to check the material is this:
I'm not sure exactly where the problem is, but the compiler says