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

Function mquaffmsg

src/muse.c:292–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292staticfn void
293mquaffmsg(struct monst *mtmp, struct obj *otmp)
294{
295 if (canseemon(mtmp)) {
296 observe_object(otmp);
297 pline_mon(mtmp, "%s drinks %s!", Monnam(mtmp), singular(otmp, doname));
298 } else if (!Deaf) {
299 Soundeffect(se_mon_chugging_potion, 25);
300 You_hear("a chugging sound.");
301 }
302}
303
304/* Defines for various types of stuff. The order in which monsters prefer
305 * to use them is determined by the order of the code logic, not the

Callers 3

precheckFunction · 0.85
use_defensiveFunction · 0.85
use_miscFunction · 0.85

Calls 6

canseemonFunction · 0.85
observe_objectFunction · 0.85
pline_monFunction · 0.85
MonnamFunction · 0.85
singularFunction · 0.85
You_hearFunction · 0.85

Tested by

no test coverage detected