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

Function mon_beside

src/pickup.c:2071–2085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2069}
2070
2071staticfn boolean
2072mon_beside(coordxy x, coordxy y)
2073{
2074 int i, j;
2075 coordxy nx, ny;
2076
2077 for (i = -1; i <= 1; i++)
2078 for (j = -1; j <= 1; j++) {
2079 nx = x + i;
2080 ny = y + j;
2081 if (isok(nx, ny) && MON_AT(nx, ny))
2082 return TRUE;
2083 }
2084 return FALSE;
2085}
2086
2087staticfn int
2088do_loot_cont(

Callers 1

doloot_coreFunction · 0.85

Calls 1

isokFunction · 0.85

Tested by

no test coverage detected