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

Function get_table_monclass

src/sp_lev.c:3130–3140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3128}
3129
3130staticfn int
3131get_table_monclass(lua_State *L)
3132{
3133 char *s = get_table_str_opt(L, "class", NULL);
3134 int ret = -1;
3135
3136 if (s && strlen(s) == 1)
3137 ret = (int) *s;
3138 Free(s);
3139 return ret;
3140}
3141
3142staticfn int
3143find_montype(

Callers 1

lspo_monsterFunction · 0.85

Calls 1

get_table_str_optFunction · 0.85

Tested by

no test coverage detected