controlling u.ustuck
Setting or clearing u.ustuck now requires that context.botl be set, so make a new routine to take care of both instead of manipulating that pointer directly.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1581562570 2020/02/13 02:56:10 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.796 $ */
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1581886855 2020/02/16 21:00:55 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.797 $ */
|
||||
/* Copyright (c) Steve Creps, 1988. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -1468,6 +1468,7 @@ E void FDECL(mondied, (struct monst *));
|
||||
E void FDECL(mongone, (struct monst *));
|
||||
E void FDECL(monstone, (struct monst *));
|
||||
E void FDECL(monkilled, (struct monst *, const char *, int));
|
||||
E void FDECL(set_ustuck, (struct monst *));
|
||||
E void FDECL(unstuck, (struct monst *));
|
||||
E void FDECL(killed, (struct monst *));
|
||||
E void FDECL(xkilled, (struct monst *, int));
|
||||
@@ -1515,8 +1516,8 @@ E boolean FDECL(poly_when_stoned, (struct permonst *));
|
||||
E boolean FDECL(resists_drli, (struct monst *));
|
||||
E boolean FDECL(resists_magm, (struct monst *));
|
||||
E boolean FDECL(resists_blnd, (struct monst *));
|
||||
E boolean
|
||||
FDECL(can_blnd, (struct monst *, struct monst *, UCHAR_P, struct obj *));
|
||||
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(mon_hates_silver, (struct monst *));
|
||||
|
||||
Reference in New Issue
Block a user