filling antholes
From a bug report: when creating a level, anthole rooms can be generated even when no ants are left, unlike beehives which get suppressed once killer bees are gone. Also, if some ants are available but the type chosen for the current level isn't (in his case, soldier ants had been genocided), the anthole was filled will random monsters instead of picking another type of ant. This fixes both issues. Random monsters will only occur if the last type of ant gets used up while filling an anthole that was started when some ants were available, same as how monster generation for beehives and barracks works.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)mklev.c 3.5 2006/01/28 */
|
||||
/* SCCS Id: @(#)mklev.c 3.5 2006/03/06 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -736,7 +736,7 @@ makelevel()
|
||||
else if (u_depth > 9 && !rn2(5) &&
|
||||
!(mvitals[PM_KILLER_BEE].mvflags & G_GONE)) mkroom(BEEHIVE);
|
||||
else if (u_depth > 11 && !rn2(6)) mkroom(MORGUE);
|
||||
else if (u_depth > 12 && !rn2(8)) mkroom(ANTHOLE);
|
||||
else if (u_depth > 12 && !rn2(8) && antholemon()) mkroom(ANTHOLE);
|
||||
else if (u_depth > 14 && !rn2(4) &&
|
||||
!(mvitals[PM_SOLDIER].mvflags & G_GONE)) mkroom(BARRACKS);
|
||||
else if (u_depth > 15 && !rn2(6)) mkroom(SWAMP);
|
||||
|
||||
Reference in New Issue
Block a user