rph@nancy (Richard Hughey) (01/11/88)
Change to mklev.c: makelevel() so that medusa and wizard level depend
on the MAXLEVEL variable correctly. This problem was pointed
out by John Sin. With luck, this is the last MAXLEVEL dependent
bug, though monster generation should be more dependent on
MAXLEVEL instead of arbitrary constants.
-- Richard
---------------------------------------------------------------------
*** oldmklev.c Mon Jan 11 10:36:49 1988
--- mklev.c Mon Jan 11 10:37:53 1988
***************
*** 60,67 ****
oinit(); /* assign level dependent obj probabilities */
#ifdef RPH
if (u.wiz_level == 0) {
! u.medusa_level = rn1(3,25);
! u.wiz_level = d(3,10) + u.medusa_level;
# ifdef WIZARD
if (wizard && dlevel == 1)
pline ("The wiz is at %d, and the medusa at %d",
--- 60,68 ----
oinit(); /* assign level dependent obj probabilities */
#ifdef RPH
if (u.wiz_level == 0) {
! u.medusa_level = rn1(3, (MAXLEVEL > 30) ? 25 : (MAXLEVEL - 4) );
! u.wiz_level = rn1(MAXLEVEL-u.medusa_level, u.medusa_level)+1;
# ifdef WIZARD
if (wizard && dlevel == 1)
pline ("The wiz is at %d, and the medusa at %d",
------------------------------
Richard Hughey CSNET: rph%cs.brown.edu@relay.cs.net
Brown University BITNET: rph@browncs
(decvax, ihnp4, allegra)!brunix!rph