From 18d19c902b042f2df1f81347130e64ea0b4058f4 Mon Sep 17 00:00:00 2001 From: copperwater Date: Tue, 14 Apr 2020 22:30:20 -0400 Subject: [PATCH] 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. --- src/sp_lev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);