WIZKIT inventory overflow (trunk only)

Wizard mode's $WIZKIT can specify an unlimited number of items to
add to starting inventory and they'd be put there without regard to the
number of slots in use, potentially resulting in an arbitrary number of
'#' slot items.  Cap at 52 slots, same as when picking up, and put any
excess items at the hero's feet.  It's slightly tricky because the level
hasn't been created yet at the time the wizkit gets processed.
This commit is contained in:
nethack.rankin
2007-06-16 04:18:14 +00:00
parent 2ad3afee05
commit d1387f2b6b
5 changed files with 35 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)dungeon.h 3.5 1999/07/02 */
/* SCCS Id: @(#)dungeon.h 3.5 2007/06/15 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -142,6 +142,7 @@ typedef struct branch {
#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_NOBREAK 1024 /* bitmask: don't break on delivery */
/* level information (saved via ledger number) */