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

Function beehive_mon_sound

src/sounds.c:61–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60
61staticfn boolean
62beehive_mon_sound(struct monst *mtmp)
63{
64 if ((mtmp->data->mlet == S_ANT && is_flyer(mtmp->data))
65 && mon_in_room(mtmp, BEEHIVE)) {
66 int hallu = Hallucination ? 1 : 0;
67
68 switch (rn2(2) + hallu) {
69 case 0:
70 Soundeffect(se_low_buzzing, 30);
71 You_hear("a low buzzing.");
72 break;
73 case 1:
74 Soundeffect(se_angry_drone, 100);
75 You_hear("an angry drone.");
76 break;
77 case 2:
78 Soundeffect(se_bees, 100);
79 You_hear("bees in your %sbonnet!",
80 uarmh ? "" : "(nonexistent) ");
81 break;
82 }
83 return TRUE;
84 }
85 return FALSE;
86}
87
88staticfn boolean
89morgue_mon_sound(struct monst *mtmp)

Callers

nothing calls this directly

Calls 3

mon_in_roomFunction · 0.85
rn2Function · 0.85
You_hearFunction · 0.85

Tested by

no test coverage detected