From: copperwater Date: Wed, 15 Apr 2020 02:30:20 +0000 (-0400) Subject: Allow specifying a montype on figurines in lua files X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18d19c902b042f2df1f81347130e64ea0b4058f4;p=nethack Allow specifying a montype on figurines in lua files This was already allowed for the other montype-compatible objects like statues, corpses, eggs and tins. I don't see a reason why figurines shouldn't be part of this group; perhaps it was an oversight. --- diff --git a/src/sp_lev.c b/src/sp_lev.c index 817a93ba5..48177b0fc 100755 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -3459,7 +3459,8 @@ lua_State *L; tmpobj.id = -1; if (tmpobj.id == STATUE || tmpobj.id == EGG - || tmpobj.id == CORPSE || tmpobj.id == TIN) { + || tmpobj.id == CORPSE || tmpobj.id == TIN + || tmpobj.id == FIGURINE) { struct permonst *pm = NULL; int i, lflags = 0; char *montype = get_table_str_opt(L, "montype", NULL);