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

Function litstate_rnd

src/mkmap.c:442–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440#define N_P3_ITER 2 /* tune map smoothing via this value */
441
442boolean
443litstate_rnd(int litstate)
444{
445 if (litstate < 0)
446 return (rnd(1 + abs(depth(&u.uz))) < 11 && rn2(77)) ? TRUE : FALSE;
447 return (boolean) litstate;
448}
449
450void
451mkmap(lev_init *init_lev)

Callers 4

mkmapFunction · 0.85
create_roomFunction · 0.85
create_subroomFunction · 0.85
lspo_regionFunction · 0.85

Calls 3

rndFunction · 0.85
depthFunction · 0.85
rn2Function · 0.85

Tested by

no test coverage detected