local x = nh.is_genocided("vampire") */
| 967 | |
| 968 | /* local x = nh.is_genocided("vampire") */ |
| 969 | staticfn int |
| 970 | nhl_is_genocided(lua_State *L) |
| 971 | { |
| 972 | int argc = lua_gettop(L); |
| 973 | |
| 974 | if (argc == 1) { |
| 975 | const char *paramstr = luaL_checkstring(L, 1); |
| 976 | int mgend; |
| 977 | int i = name_to_mon(paramstr, &mgend); |
| 978 | |
| 979 | lua_pushboolean(L, (i != NON_PM) |
| 980 | && (svm.mvitals[i].mvflags & G_GENOD) |
| 981 | ? TRUE : FALSE); |
| 982 | } else { |
| 983 | nhl_error(L, "Wrong args"); |
| 984 | } |
| 985 | return 1; |
| 986 | } |
| 987 | |
| 988 | /* local debug_themerm = nh.debug_themerm(isfill) |
| 989 | * if isfill is false, returns value of env variable THEMERM |
nothing calls this directly
no test coverage detected