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

Function display_stinking_cloud_positions

src/read.c:1087–1112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1085}
1086
1087staticfn void
1088display_stinking_cloud_positions(boolean on_off)
1089{
1090 coordxy x, y, dx, dy;
1091 int dist = 6;
1092
1093 if (on_off) {
1094 /* on */
1095 tmp_at(DISP_BEAM, cmap_to_glyph(S_goodpos));
1096 for (dx = -dist; dx <= dist; dx++)
1097 for (dy = -dist; dy <= dist; dy++) {
1098 x = u.ux + dx;
1099 y = u.uy + dy;
1100 /* hero's location is allowed but highlighting the hero's
1101 spot makes map harder to read (if using '$' rather than
1102 by changing background color) */
1103 if (u_at(x, y))
1104 continue;
1105 if (can_center_cloud(x, y))
1106 tmp_at(x, y);
1107 }
1108 } else {
1109 /* off */
1110 tmp_at(DISP_END, 0);
1111 }
1112}
1113
1114staticfn void
1115seffect_enchant_armor(struct obj **sobjp)

Callers

nothing calls this directly

Calls 2

tmp_atFunction · 0.85
can_center_cloudFunction · 0.85

Tested by

no test coverage detected