| 290 | } |
| 291 | |
| 292 | staticfn void |
| 293 | mquaffmsg(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 |