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

Function noncoalignment

src/sp_lev.c:1851–1860  ·  view source on GitHub ↗

* Create a monster in a room. */

Source from the content-addressed store, hash-verified

1849 * Create a monster in a room.
1850 */
1851staticfn int
1852noncoalignment(aligntyp alignment)
1853{
1854 int k;
1855
1856 k = rn2(2);
1857 if (!alignment)
1858 return (k ? -1 : 1);
1859 return (k ? -alignment : 0);
1860}
1861
1862/* attempt to screen out locations where a mimic-as-boulder shouldn't occur */
1863staticfn boolean

Callers 1

sp_amask_to_amaskFunction · 0.85

Calls 1

rn2Function · 0.85

Tested by

no test coverage detected