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

Function probe_monster

src/zap.c:625–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625void
626probe_monster(struct monst *mtmp)
627{
628 mstatusline(mtmp);
629 if (gn.notonhead)
630 return; /* don't show minvent for long worm tail */
631
632 if (mtmp->minvent) {
633 probe_objchain(mtmp->minvent);
634 (void) display_minventory(mtmp, MINV_ALL | MINV_NOLET | PICK_NONE,
635 (char *) 0);
636 } else {
637 pline("%s is not carrying anything%s.", noit_Monnam(mtmp),
638 engulfing_u(mtmp) ? " besides you" : "");
639 }
640}
641
642/*
643 * Return the object's physical location. This only makes sense for

Callers 3

Mb_hitFunction · 0.85
bhitmFunction · 0.85
zap_steedFunction · 0.85

Calls 5

mstatuslineFunction · 0.85
probe_objchainFunction · 0.85
display_minventoryFunction · 0.85
noit_MonnamFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected