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

Function observable_depth

src/topten.c:182–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182int
183observable_depth(d_level *lev)
184{
185#if 0
186 /* if we ever randomize the order of the elemental planes, we
187 must use a constant external representation in the record file */
188 if (In_endgame(lev)) {
189 if (Is_astralevel(lev))
190 return -5;
191 else if (Is_waterlevel(lev))
192 return -4;
193 else if (Is_firelevel(lev))
194 return -3;
195 else if (Is_airlevel(lev))
196 return -2;
197 else if (Is_earthlevel(lev))
198 return -1;
199 else
200 return 0; /* ? */
201 } else
202#endif
203 return depth(lev);
204}
205
206/* throw away characters until current record has been entirely consumed */
207staticfn void

Callers 2

toptenFunction · 0.85
background_enlightenmentFunction · 0.85

Calls 1

depthFunction · 0.85

Tested by

no test coverage detected