git issue #717 - avoid putting monsters on scare \
monster and Elbereth unless there's no other choice. Suggested by NetSysFire, don't create new monsters on top of scrolls of scare monster. Not mentioned in the suggestion: unless they are a type of monster that isn't affected by such scrolls. This extends it to teleport destination too. Avoid placing a monster on a scroll of scare monster or on engraved Elbereth if there are other locations available. Only performed for callers of goodpos() who explicitly request it, which at the moment are makemon(), rloc(), and enexto(). Also, propagate 'mmflags_nht' to a bunch of places that were left using long or unsigned for makemon() and goodpos() flags. I didn't attempt to be systematic about that though. Implements #717
This commit is contained in:
@@ -295,11 +295,12 @@ typedef uint32_t mmflags_nht; /* makemon MM_ flags */
|
||||
#define MM_FEMALE 0x020000L /* female variation */
|
||||
#define MM_NOMSG 0x040000L /* no appear message */
|
||||
/* if more MM_ flag masks are added, skip or renumber the GP_ one(s) */
|
||||
#define GP_ALLOW_XY 0x080000L /* [actually used by enexto() to decide whether
|
||||
* to make an extra call to goodpos()] */
|
||||
#define GP_ALLOW_U 0x100000L /* don't reject hero's location */
|
||||
#define MM_NOEXCLAM 0x200000L /* more sedate "<mon> appears." mesg for ^G */
|
||||
#define MM_IGNORELAVA 0x400000L /* ignore lava when positioning */
|
||||
#define GP_ALLOW_XY 0x080000L /* [actually used by enexto() to decide
|
||||
* whether to make extra call to goodpos()] */
|
||||
#define GP_ALLOW_U 0x100000L /* don't reject hero's location */
|
||||
#define GP_CHECKSCARY 0x200000L /* check monster for onscary() */
|
||||
#define MM_NOEXCLAM 0x400000L /* more sedate "<mon> appears." mesg for ^G */
|
||||
#define MM_IGNORELAVA 0x800000L /* ignore lava when positioning */
|
||||
|
||||
/* flags for make_corpse() and mkcorpstat(); 0..7 are recorded in obj->spe */
|
||||
#define CORPSTAT_NONE 0x00
|
||||
|
||||
Reference in New Issue
Block a user