make attack result macros more distinguishable from makemon macros
Use the MM_ prefix only for the makemon macros, and change these five as follows: MM_MISS 0x0 -> M_ATTK_MISS /* aggressor missed */ MM_HIT 0x1 -> M_ATTK_HIT /* aggressor hit defender */ MM_DEF_DIED 0x2 -> M_ATTK_DEF_DIED /* defender died */ MM_AGR_DIED 0x4 -> M_ATTK_AGR_DIED /* aggressor died */ MM_AGR_DONE 0x8 -> M_ATTK_AGR_DONE /* aggressor is done with their turn */ include/hack.h:#define NO_MM_FLAGS 0x000000L /* use this rather than plain 0 */ include/hack.h:#define MM_NOWAIT 0x000002L /* don't set STRAT_WAITMASK flags */ include/hack.h:#define MM_NOCOUNTBIRTH 0x000004L /* don't increment born count (for revival) */ include/hack.h:#define MM_IGNOREWATER 0x000008L /* ignore water when positioning */ include/hack.h:#define MM_ADJACENTOK 0x000010L /* acceptable to use adjacent coordinates */ include/hack.h:#define MM_ANGRY 0x000020L /* monster is created angry */ include/hack.h:#define MM_NONAME 0x000040L /* monster is not christened */ include/hack.h:#define MM_EGD 0x000100L /* add egd structure */ include/hack.h:#define MM_EPRI 0x000200L /* add epri structure */ include/hack.h:#define MM_ESHK 0x000400L /* add eshk structure */ include/hack.h:#define MM_EMIN 0x000800L /* add emin structure */ include/hack.h:#define MM_EDOG 0x001000L /* add edog structure */ include/hack.h:#define MM_ASLEEP 0x002000L /* monsters should be generated asleep */ include/hack.h:#define MM_NOGRP 0x004000L /* suppress creation of monster groups */ include/hack.h:#define MM_NOTAIL 0x008000L /* if a long worm, don't give it a tail */ include/hack.h:#define MM_MALE 0x010000L /* male variation */ include/hack.h:#define MM_FEMALE 0x020000L /* female variation */ include/hack.h:#define MM_NOMSG 0x040000L /* no appear message */ include/hack.h:#define MM_NOEXCLAM 0x400000L /* more sedate "<mon> appears." mesg for ^G */ include/hack.h:#define MM_IGNORELAVA 0x800000L /* ignore lava when positioning */
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
|
||||
struct mhitm_data {
|
||||
int damage;
|
||||
int hitflags; /* MM_DEF_DIED | MM_AGR_DIED | ... */
|
||||
int hitflags; /* M_ATTK_DEF_DIED | M_ATTK_AGR_DIED | ... */
|
||||
boolean done;
|
||||
boolean permdmg;
|
||||
int specialdmg;
|
||||
@@ -105,10 +105,10 @@ struct mhitm_data {
|
||||
* any or all of the following can be returned. See mattackm() for more
|
||||
* details.
|
||||
*/
|
||||
#define MM_MISS 0x0 /* aggressor missed */
|
||||
#define MM_HIT 0x1 /* aggressor hit defender */
|
||||
#define MM_DEF_DIED 0x2 /* defender died */
|
||||
#define MM_AGR_DIED 0x4 /* aggressor died */
|
||||
#define MM_AGR_DONE 0x8 /* aggressor is done with their turn */
|
||||
#define M_ATTK_MISS 0x0 /* aggressor missed */
|
||||
#define M_ATTK_HIT 0x1 /* aggressor hit defender */
|
||||
#define M_ATTK_DEF_DIED 0x2 /* defender died */
|
||||
#define M_ATTK_AGR_DIED 0x4 /* aggressor died */
|
||||
#define M_ATTK_AGR_DONE 0x8 /* aggressor is done with their turn */
|
||||
|
||||
#endif /* MONATTK_H */
|
||||
|
||||
Reference in New Issue
Block a user