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

Function can_center_cloud

src/read.c:1079–1085  ·  view source on GitHub ↗

Callback for getpos_sethilite, also used in determining whether a scroll * should have its regular effects, or not because it was out of range. */

Source from the content-addressed store, hash-verified

1077 * should have its regular effects, or not because it was out of range.
1078 */
1079staticfn boolean
1080can_center_cloud(coordxy x, coordxy y)
1081{
1082 if (!valid_cloud_pos(x, y))
1083 return FALSE;
1084 return (cansee(x, y) && distu(x, y) < 32);
1085}
1086
1087staticfn void
1088display_stinking_cloud_positions(boolean on_off)

Callers 3

seffect_fireFunction · 0.85
do_stinking_cloudFunction · 0.85

Calls 1

valid_cloud_posFunction · 0.85

Tested by

no test coverage detected