WIZKIT overflow tweak (trunk only)

Redo the $WIZKIT overflow handling from a few days ago.  Instead of
having two migration codes which both mean "with the hero", combine them
and add a mask flag to control scattering at the destination to be able to
get the alternate behavior.
This commit is contained in:
nethack.rankin
2007-06-19 03:13:20 +00:00
parent d1387f2b6b
commit acc0aa3ff3
4 changed files with 14 additions and 15 deletions

View File

@@ -141,9 +141,9 @@ typedef struct branch {
#define MIGR_LADDER_DOWN 6
#define MIGR_SSTAIRS 7 /* dungeon branch */
#define MIGR_PORTAL 8 /* magic portal */
#define MIGR_NEAR_PLAYER 9 /* mon: followers; obj: trap door */
#define MIGR_AT_HERO 10 /* wizkit overflow */
#define MIGR_WITH_HERO 9 /* mon: followers; obj: trap door */
#define MIGR_NOBREAK 1024 /* bitmask: don't break on delivery */
#define MIGR_NOSCATTER 2048 /* don't scatter on delivery */
/* level information (saved via ledger number) */