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.
This commit is contained in:
copperwater
2020-04-15 06:47:58 +03:00
committed by Pasi Kallinen
parent 2fbf9573d5
commit 18d19c902b
+2 -1
View File
@@ -3459,7 +3459,8 @@ lua_State *L;
tmpobj.id = -1; tmpobj.id = -1;
if (tmpobj.id == STATUE || tmpobj.id == EGG 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; struct permonst *pm = NULL;
int i, lflags = 0; int i, lflags = 0;
char *montype = get_table_str_opt(L, "montype", NULL); char *montype = get_table_str_opt(L, "montype", NULL);