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

Function get_mkroom_name

src/sp_lev.c:3990–4001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3988};
3989
3990staticfn const char *
3991get_mkroom_name(int rtype)
3992{
3993 int i;
3994
3995 for (i = 0; room_types[i].name; i++)
3996 if (room_types[i].type == rtype)
3997 return room_types[i].name;
3998
3999 impossible("get_mkroom_name unknown rtype %d", rtype);
4000 return "unknown"; /* not NULL */
4001}
4002
4003staticfn int
4004get_table_roomtype_opt(lua_State *L, const char *name, int defval)

Callers 1

l_push_mkroom_tableFunction · 0.85

Calls 1

impossibleFunction · 0.70

Tested by

no test coverage detected