| 1085 | } |
| 1086 | |
| 1087 | staticfn void |
| 1088 | display_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 | |
| 1114 | staticfn void |
| 1115 | seffect_enchant_armor(struct obj **sobjp) |
nothing calls this directly
no test coverage detected