multiple iron bars fixes
Can't push boulders through iron bars; traps can't roll such through either; likewise for objects thrown by monsters. Thrown objects susceptible to breaking might do so when they hit iron bars. Assorted monsters can pass through iron bars; ditto for polymorphed character. Attempting to dig iron bars will wake nearby monsters instead of yielding "you swing your pick-axe through thin air". Autodig won't accept iron bars as candidate location.
This commit is contained in:
@@ -1128,6 +1128,7 @@ E boolean FDECL(resists_blnd, (struct monst *));
|
||||
E boolean FDECL(can_blnd, (struct monst *,struct monst *,UCHAR_P,struct obj *));
|
||||
E boolean FDECL(ranged_attk, (struct permonst *));
|
||||
E boolean FDECL(hates_silver, (struct permonst *));
|
||||
E boolean FDECL(passes_bars, (struct permonst *));
|
||||
E boolean FDECL(can_track, (struct permonst *));
|
||||
E boolean FDECL(breakarm, (struct permonst *));
|
||||
E boolean FDECL(sliparm, (struct permonst *));
|
||||
@@ -1240,6 +1241,7 @@ E boolean FDECL(lined_up, (struct monst *));
|
||||
E struct obj *FDECL(m_carrying, (struct monst *,int));
|
||||
E void FDECL(m_useup, (struct monst *,struct obj *));
|
||||
E void FDECL(m_throw, (struct monst *,int,int,int,int,int,struct obj *));
|
||||
E boolean FDECL(hits_bars, (struct obj **,int,int,int,int));
|
||||
|
||||
/* ### muse.c ### */
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)mfndpos.h 3.4 1993/05/15 */
|
||||
/* SCCS Id: @(#)mfndpos.h 3.4 2002/04/06 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#define ALLOW_ROCK 0x02000000L /* pushes rocks */
|
||||
#define ALLOW_WALL 0x04000000L /* walks thru walls */
|
||||
#define ALLOW_DIG 0x08000000L /* digs */
|
||||
#define ALLOW_BARS 0x10000000L /* may pass thru iron bars */
|
||||
#define ALLOW_SANCT 0x20000000L /* enters temples */
|
||||
#define ALLOW_SSM 0x40000000L /* ignores scare monster */
|
||||
#ifdef NHSTDC
|
||||
|
||||
Reference in New Issue
Block a user