From e2e3e70fc43548b87c694423fd776c34a0e7cb42 Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Thu, 27 Jul 2023 15:56:36 +0200 Subject: [PATCH] Fix: Vecna wasn't getting the Key of Chaos! --- hackem_changelog.txt | 1 + src/makemon.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/hackem_changelog.txt b/hackem_changelog.txt index 3ee98dda4..baa3e67fd 100644 --- a/hackem_changelog.txt +++ b/hackem_changelog.txt @@ -16,6 +16,7 @@ Version 1.2.0 (unreleased) +Fix: Vecna wasn't getting the Key of Chaos! Fix: Lookup for skeleton key matched skeleton monster. Message when cursed gain level is blocked at Vlad's Tower. Two alignment keys can be forged together to create The Key of Access. diff --git a/src/makemon.c b/src/makemon.c index 0ee27aed6..0e8c8452c 100644 --- a/src/makemon.c +++ b/src/makemon.c @@ -3421,6 +3421,13 @@ long mmflags; mtmp->iscerberus = TRUE; } else if (mndx == PM_VECNA) { mtmp->isvecna = TRUE; + struct obj *otmp; + otmp = oname(mksobj(SKELETON_KEY, TRUE, FALSE), + artiname(ART_KEY_OF_CHAOS)); + if (otmp) { + otmp->blessed = otmp->cursed = 0; + mpickobj(mtmp, otmp); + } } else if (mndx == PM_GRUND_THE_ORC_KING) { mtmp->isgrund = TRUE; (void) mongets(mtmp, SUBMACHINE_GUN);