Doppelgangers mimic top ten list members.

I saw this in the YANI archive, and I think it's fairly interesting.
Doppelgangers are known for commiting identity theft, but in NetHack
they function as just another shapeshifter. This commit makes them
a bit more interesting, I think.

Original YANI by aosdict and Andrio.
This commit is contained in:
Kestrel Gregorich-Trevor
2023-04-06 13:13:56 -05:00
committed by PatR
parent ad01b23090
commit 8e43b684e8
3 changed files with 25 additions and 1 deletions

View File

@@ -4605,7 +4605,7 @@ select_newcham_form(struct monst* mon)
if (!rn2(7)) {
mndx = pick_nasty(mons[PM_JABBERWOCK].difficulty - 1);
} else if (rn2(3)) { /* role monsters */
mndx = rn1(PM_WIZARD - PM_ARCHEOLOGIST + 1, PM_ARCHEOLOGIST);
mndx = tt_doppel(mon);
} else if (!rn2(3)) { /* quest guardians */
mndx = rn1(PM_APPRENTICE - PM_STUDENT + 1, PM_STUDENT);
/* avoid own role's guardian */