From e0bc8afa5289aa6d44b85ef5202267e37adbe0e4 Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 23 Nov 2023 20:20:15 -0500 Subject: [PATCH] keep comment and the struct it applies to together An code insertion earlier today got between them. --- include/permonst.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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;