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?
This commit is contained in:
copperwater
2020-04-05 15:42:38 +03:00
committed by Pasi Kallinen
parent e13b1833cc
commit 30ad8eed84
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -112,6 +112,7 @@ potions of hallucination can give enlightenment
add a small chance of surviving food poisoning add a small chance of surviving food poisoning
deliberate level teleporter activation ignores magic resistance deliberate level teleporter activation ignores magic resistance
auto-id scroll of remove curse when a known buc-state was changed 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 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
+2 -1
View File
@@ -1327,7 +1327,8 @@ int mmflags;
if (is_dprince(ptr) && ptr->msound == MS_BRIBE) { if (is_dprince(ptr) && ptr->msound == MS_BRIBE) {
mtmp->mpeaceful = mtmp->minvis = mtmp->perminvis = 1; mtmp->mpeaceful = mtmp->minvis = mtmp->perminvis = 1;
mtmp->mavenge = 0; mtmp->mavenge = 0;
if (uwep && uwep->oartifact == ART_EXCALIBUR) if (uwep && (uwep->oartifact == ART_EXCALIBUR
|| uwep->oartifact == ART_DEMONBANE))
mtmp->mpeaceful = mtmp->mtame = FALSE; mtmp->mpeaceful = mtmp->mtame = FALSE;
} }
if (mndx == PM_LONG_WORM && (mtmp->wormno = get_wormno()) != 0) { if (mndx == PM_LONG_WORM && (mtmp->wormno = get_wormno()) != 0) {
+2 -1
View File
@@ -230,7 +230,8 @@ register struct monst *mtmp;
{ {
long cash, demand, offer; 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)); pline("%s looks very angry.", Amonnam(mtmp));
mtmp->mpeaceful = mtmp->mtame = 0; mtmp->mpeaceful = mtmp->mtame = 0;
set_malign(mtmp); set_malign(mtmp);