eating gold in front of the vault guard (trunk only)

<email deleted> wrote:
> Eating gold in a vault (or polymorphing a pile of gold into 1 gold piece)
> doesn't anger the guard.

This addresses the eating part of that report, but the hero
has to get caught doing it.
This commit is contained in:
nethack.allison
2006-03-26 05:23:46 +00:00
parent 62b430601f
commit ecb98e019c
5 changed files with 26 additions and 1 deletions

View File

@@ -2236,6 +2236,7 @@ E int FDECL(gd_move, (struct monst *));
E void NDECL(paygd);
E long NDECL(hidden_gold);
E boolean NDECL(gd_sound);
E void FDECL(vault_gd_watching, (unsigned int));
/* ### version.c ### */

View File

@@ -62,6 +62,8 @@
** formerly vault.h -- vault guard extension
*/
#define FCSIZ (ROWNO+COLNO)
#define GD_EATGOLD 0x01
#define GD_DESTROYGOLD 0x02
struct fakecorridor {
xchar fx, fy, ftyp;
@@ -75,7 +77,8 @@ struct egd {
d_level gdlevel; /* level (& dungeon) guard was created in */
xchar warncnt; /* number of warnings to follow */
Bitfield(gddone,1); /* true iff guard has released player */
Bitfield(unused,7);
Bitfield(witness,2); /* the guard saw you do something */
Bitfield(unused,5);
struct fakecorridor fakecorr[FCSIZ];
};