MCPcopy Create free account
hub / github.com/NetHack/NetHack / minliquid

Function minliquid

src/mon.c:946–957  ·  view source on GitHub ↗

check mtmp and water/lava for compatibility, 0 (survived), 1 (died) */

Source from the content-addressed store, hash-verified

944
945/* check mtmp and water/lava for compatibility, 0 (survived), 1 (died) */
946int
947minliquid(struct monst *mtmp)
948{
949 int res;
950
951 /* set up flag for mondead() and xkilled() */
952 iflags.sad_feeling = (mtmp->mtame && !canseemon(mtmp));
953 res = minliquid_core(mtmp);
954 /* always clear the flag */
955 iflags.sad_feeling = FALSE;
956 return res;
957}
958
959/* guts of minliquid() */
960staticfn int

Callers 12

domove_swap_with_petFunction · 0.85
domove_coreFunction · 0.85
gulpmmFunction · 0.85
liquid_flowFunction · 0.85
mhurtleFunction · 0.85
make_familiarFunction · 0.85
m_calcdistressFunction · 0.85
movemon_singlemonFunction · 0.85
melt_iceFunction · 0.85
mkinvposFunction · 0.85
destroy_drawbridgeFunction · 0.85
gushFunction · 0.85

Calls 2

canseemonFunction · 0.85
minliquid_coreFunction · 0.85

Tested by

no test coverage detected