]> granicus.if.org Git - nethack/commitdiff
Make demon lords hostile if wielding Demonbane as well as Excalibur
authorcopperwater <aosdict@gmail.com>
Tue, 25 Sep 2018 01:03:03 +0000 (21:03 -0400)
committerPasi Kallinen <paxed@alt.org>
Sun, 5 Apr 2020 12:42:38 +0000 (15:42 +0300)
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?

doc/fixes37.0
src/makemon.c
src/minion.c

index 7b1ffbb83a674d5372053072aa298c16b1a7b7e2..0952a3d271084509f321dcf31189a26d37db5bee 100644 (file)
@@ -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
index 99347c9f4b3f87ee61fa6570c52cedc5bbc425b9..e7586ad5cf516b9fe6f48616853b0ef9ff0c3356 100644 (file)
@@ -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) {
index eb5697967e4dc308e679fecde39ba849ce2fabe5..03706027a5b294f25884df9fdf37fe3470b58da6 100644 (file)
@@ -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);