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

Function nhl_level_difficulty

src/nhlua.c:956–966  ·  view source on GitHub ↗

level_difficulty() */

Source from the content-addressed store, hash-verified

954
955/* level_difficulty() */
956staticfn int
957nhl_level_difficulty(lua_State *L)
958{
959 int argc = lua_gettop(L);
960 if (argc == 0) {
961 lua_pushinteger(L, level_difficulty());
962 } else {
963 nhl_error(L, "level_difficulty should not have any args");
964 }
965 return 1;
966}
967
968/* local x = nh.is_genocided("vampire") */
969staticfn int

Callers

nothing calls this directly

Calls 2

level_difficultyFunction · 0.85
nhl_errorFunction · 0.85

Tested by

no test coverage detected