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

Function mcast_geyser

src/mcastu.c:522–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522staticfn int
523mcast_geyser(int dmg)
524{
525 /* this is physical damage (force not heat),
526 * not magical damage or fire damage
527 */
528 pline("A sudden geyser slams into you from nowhere!");
529 dmg = d(8, 6);
530 if (Half_physical_damage)
531 dmg = (dmg + 1) / 2;
532#if 0 /* since inventory items aren't affected, don't include this */
533 /* make floor items wet */
534 water_damage_chain(level.objects[u.ux][u.uy], TRUE);
535#endif
536 return dmg;
537}
538
539staticfn int
540mcast_fire_pillar(struct monst *mtmp, int dmg)

Callers 1

mcast_spellFunction · 0.85

Calls 3

dFunction · 0.85
water_damage_chainFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected