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

Function engulfer_explosion_msg

src/explode.c:117–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117staticfn void
118engulfer_explosion_msg(uchar adtyp, char olet)
119{
120 const char *adj = (char *) 0;
121
122 if (digests(u.ustuck->data)) {
123 switch (adtyp) {
124 case AD_FIRE:
125 adj = "heartburn";
126 break;
127 case AD_COLD:
128 adj = "chilly";
129 break;
130 case AD_DISN:
131 if (olet == WAND_CLASS)
132 adj = "irradiated by pure energy";
133 else
134 adj = "perforated";
135 break;
136 case AD_ELEC:
137 adj = "shocked";
138 break;
139 case AD_DRST:
140 adj = "poisoned";
141 break;
142 case AD_ACID:
143 adj = "an upset stomach";
144 break;
145 default:
146 adj = "fried";
147 break;
148 }
149 pline("%s gets %s!", Monnam(u.ustuck), adj);
150 } else {
151 switch (adtyp) {
152 case AD_FIRE:
153 adj = "toasted";
154 break;
155 case AD_COLD:
156 adj = "chilly";
157 break;
158 case AD_DISN:
159 if (olet == WAND_CLASS)
160 adj = "overwhelmed by pure energy";
161 else
162 adj = "perforated";
163 break;
164 case AD_ELEC:
165 adj = "shocked";
166 break;
167 case AD_DRST:
168 adj = "intoxicated";
169 break;
170 case AD_ACID:
171 adj = "burned";
172 break;
173 default:
174 adj = "fried";

Callers 1

explodeFunction · 0.85

Calls 2

MonnamFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected