PR #1009 - higher statue trap difficulty
Pull request from NulCGT: make statues created for statue traps be 5 to 10 points higher in difficulty than the default would be. 5 to 10 points of difficulty higher is already used for figurines. The pull request chose the same amount but I've reduced it to 3 to 6. Partly so that they won't be the same, partly so that they won't be too hard when activated, and partly so that the creature won't be quite as obvious a give away that the statue is a trap. Closes #1009
This commit is contained in:
@@ -391,13 +391,12 @@ mk_trap_statue(coordxy x, coordxy y)
|
||||
int trycount = 10;
|
||||
|
||||
do { /* avoid ultimately hostile co-aligned unicorn */
|
||||
mptr = &mons[rndmonnum_adj(5, 10)];
|
||||
mptr = &mons[rndmonnum_adj(3, 6)];
|
||||
} while (--trycount > 0 && is_unicorn(mptr)
|
||||
&& sgn(u.ualign.type) == sgn(mptr->maligntyp));
|
||||
statue = mkcorpstat(STATUE, (struct monst *) 0, mptr, x, y,
|
||||
CORPSTAT_NONE);
|
||||
mtmp = makemon(&mons[statue->corpsenm], 0, 0,
|
||||
MM_NOCOUNTBIRTH|MM_NOMSG);
|
||||
mtmp = makemon(&mons[statue->corpsenm], 0, 0, MM_NOCOUNTBIRTH | MM_NOMSG);
|
||||
if (!mtmp)
|
||||
return; /* should never happen */
|
||||
while (mtmp->minvent) {
|
||||
|
||||
Reference in New Issue
Block a user