MCPcopy Index your code
hub / github.com/NetHack/NetHack / tutorial

Function tutorial

src/nhlua.c:1836–1846  ·  view source on GitHub ↗

called from gotolevel(do.c) */

Source from the content-addressed store, hash-verified

1834
1835/* called from gotolevel(do.c) */
1836void
1837tutorial(boolean entering)
1838{
1839 l_nhcore_call(entering ? NHCORE_ENTER_TUTORIAL : NHCORE_LEAVE_TUTORIAL);
1840
1841 if (!entering) { /* after leaving, can't go back */
1842 nhcore_call_available[NHCORE_ENTER_TUTORIAL]
1843 = nhcore_call_available[NHCORE_LEAVE_TUTORIAL]
1844 = FALSE;
1845 }
1846}
1847
1848static const struct luaL_Reg nhl_functions[] = {
1849 { "test", nhl_test },

Callers 1

goto_levelFunction · 0.85

Calls 1

l_nhcore_callFunction · 0.85

Tested by

no test coverage detected