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

Function mon_yells

src/monmove.c:105–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void
106mon_yells(struct monst *mon, const char *shout)
107{
108 if (Deaf) {
109 if (canspotmon(mon))
110 /* Sidenote on "A watchman angrily waves her arms!"
111 * Female being called watchman is correct (career name).
112 */
113 pline_mon(mon, "%s angrily %s %s %s!",
114 Amonnam(mon),
115 nolimbs(mon->data) ? "shakes" : "waves",
116 mhis(mon),
117 nolimbs(mon->data) ? mbodypart(mon, HEAD)
118 : makeplural(mbodypart(mon, ARM)));
119 } else {
120 if (canspotmon(mon)) {
121 pline_mon(mon, "%s yells:", Amonnam(mon));
122 } else {
123 /* Soundeffect(se_someone_yells, 75); */
124 You_hear("someone yell:");
125 }
126 SetVoice(mon, 0, 80, 0);
127 verbalize1(shout);
128 }
129}
130
131/* can monster mtmp break boulders? */
132boolean

Callers 3

watch_on_dutyFunction · 0.85
watchman_thief_arrestFunction · 0.85
watchman_door_damageFunction · 0.85

Calls 5

pline_monFunction · 0.85
AmonnamFunction · 0.85
mbodypartFunction · 0.85
makepluralFunction · 0.85
You_hearFunction · 0.85

Tested by

no test coverage detected