Adjust statue traps to be biased toward more difficult monsters.

This commit is contained in:
Kestrel Gregorich-Trevor
2023-04-06 12:55:24 -05:00
committed by PatR
parent 5daec07300
commit 2dd0af630e

View File

@@ -391,7 +391,7 @@ mk_trap_statue(coordxy x, coordxy y)
int trycount = 10;
do { /* avoid ultimately hostile co-aligned unicorn */
mptr = &mons[rndmonnum()];
mptr = &mons[rndmonnum_adj(5, 10)];
} while (--trycount > 0 && is_unicorn(mptr)
&& sgn(u.ualign.type) == sgn(mptr->maligntyp));
statue = mkcorpstat(STATUE, (struct monst *) 0, mptr, x, y,