From: copperwater Date: Tue, 25 Sep 2018 01:03:03 +0000 (-0400) Subject: Make demon lords hostile if wielding Demonbane as well as Excalibur X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30ad8eed84bab5b992f156cf0f0e7754a8245311;p=nethack Make demon lords hostile if wielding Demonbane as well as Excalibur This makes a lot of sense. Why would they hate one artifact sword so much and not really care about the one that is especially designed to kill their type personally? --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 7b1ffbb83..0952a3d27 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -112,6 +112,7 @@ potions of hallucination can give enlightenment add a small chance of surviving food poisoning deliberate level teleporter activation ignores magic resistance auto-id scroll of remove curse when a known buc-state was changed +demon lords hate Demonbane Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/makemon.c b/src/makemon.c index 99347c9f4..e7586ad5c 100644 --- a/src/makemon.c +++ b/src/makemon.c @@ -1327,7 +1327,8 @@ int mmflags; if (is_dprince(ptr) && ptr->msound == MS_BRIBE) { mtmp->mpeaceful = mtmp->minvis = mtmp->perminvis = 1; mtmp->mavenge = 0; - if (uwep && uwep->oartifact == ART_EXCALIBUR) + if (uwep && (uwep->oartifact == ART_EXCALIBUR + || uwep->oartifact == ART_DEMONBANE)) mtmp->mpeaceful = mtmp->mtame = FALSE; } if (mndx == PM_LONG_WORM && (mtmp->wormno = get_wormno()) != 0) { diff --git a/src/minion.c b/src/minion.c index eb5697967..03706027a 100644 --- a/src/minion.c +++ b/src/minion.c @@ -230,7 +230,8 @@ register struct monst *mtmp; { long cash, demand, offer; - if (uwep && uwep->oartifact == ART_EXCALIBUR) { + if (uwep && (uwep->oartifact == ART_EXCALIBUR + || uwep->oartifact == ART_DEMONBANE)) { pline("%s looks very angry.", Amonnam(mtmp)); mtmp->mpeaceful = mtmp->mtame = 0; set_malign(mtmp);