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:
committed by
Pasi Kallinen
parent
2fbf9573d5
commit
18d19c902b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user