Make special levels generate objects with genocided monster classes
If a special level explicitly requests eg. a statue with a genocided monster class, allow generating it. Rationale is that those objects were generated before the monsters became extinct. Also fixes a lua error.
This commit is contained in:
@@ -3313,7 +3313,7 @@ lua_State *L;
|
||||
if (montype) {
|
||||
if (strlen(montype) == 1
|
||||
&& def_char_to_monclass(*montype) != MAXMCLASSES) {
|
||||
pm = mkclass(def_char_to_monclass(*montype), G_NOGEN);
|
||||
pm = mkclass(def_char_to_monclass(*montype), G_NOGEN|G_IGNORE);
|
||||
} else {
|
||||
for (i = LOW_PM; i < NUMMONS; i++)
|
||||
if (!strcmpi(mons[i].mname, montype)) {
|
||||
|
||||
Reference in New Issue
Block a user