diff --git a/include/permonst.h b/include/permonst.h index c48752257..852984da9 100644 --- a/include/permonst.h +++ b/include/permonst.h @@ -6,18 +6,6 @@ #ifndef PERMONST_H #define PERMONST_H -/* This structure covers all attack forms. - * aatyp is the gross attack type (eg. claw, bite, breath, ...) - * adtyp is the damage type (eg. physical, fire, cold, spell, ...) - * damn is the number of hit dice of damage from the attack. - * damd is the number of sides on each die. - * - * Some attacks can do no points of damage. Additionally, some can - * have special effects *and* do damage as well. If damn and damd - * are set, they may have a special meaning. For example, if set - * for a blinding attack, they determine the amount of time blinded. - */ - enum monnums { #define MONS_ENUM #include "monsters.h" @@ -30,6 +18,18 @@ enum monnums { never generated randomly and cannot be polymorphed into */ }; +/* This structure covers all attack forms. + * aatyp is the gross attack type (eg. claw, bite, breath, ...) + * adtyp is the damage type (eg. physical, fire, cold, spell, ...) + * damn is the number of hit dice of damage from the attack. + * damd is the number of sides on each die. + * + * Some attacks can do no points of damage. Additionally, some can + * have special effects *and* do damage as well. If damn and damd + * are set, they may have a special meaning. For example, if set + * for a blinding attack, they determine the amount of time blinded. + */ + struct attack { uchar aatyp; uchar adtyp, damn, damd;