MCPcopy Index your code
hub / github.com/NetHack/NetHack / shieldeff

Function shieldeff

src/display.c:1109–1124  ·  view source on GitHub ↗

* shieldeff() * * Put magic shield pyrotechnics at the given location. This *could* be * pulled into a platform dependent routine for fancier graphics if desired. */

Source from the content-addressed store, hash-verified

1107 * pulled into a platform dependent routine for fancier graphics if desired.
1108 */
1109void
1110shieldeff(coordxy x, coordxy y)
1111{
1112 int i;
1113
1114 if (!flags.sparkle)
1115 return;
1116 if (cansee(x, y)) { /* Don't see anything if can't see the location */
1117 for (i = 0; i < SHIELD_COUNT; i++) {
1118 show_glyph(x, y, cmap_to_glyph(shield_static[i]));
1119 flush_screen(1); /* make sure the glyph shows up */
1120 nh_delay_output();
1121 }
1122 newsym(x, y); /* restore the old information */
1123 }
1124}
1125
1126staticfn int
1127tether_glyph(coordxy x, coordxy y)

Callers 15

rndcurseFunction · 0.85
mhitm_ad_fireFunction · 0.85
mhitm_ad_coldFunction · 0.85
mhitm_ad_elecFunction · 0.85
mhitm_ad_dethFunction · 0.85
passiveFunction · 0.85
flash_hits_monFunction · 0.85
castmuFunction · 0.85
mcast_death_touchFunction · 0.85
mcast_destroy_armorFunction · 0.85
mcast_weaken_youFunction · 0.85
mcast_stun_youFunction · 0.85

Calls 3

show_glyphFunction · 0.85
flush_screenFunction · 0.85
newsymFunction · 0.85

Tested by

no test coverage detected