hostile djinni from potion

Fix the situation <Someone> reported where the "You disturbed me, fool!"
result when releasing a djinni from a cloudy potion sometimes produced a
peaceful djinni for neutrals due to the usual randomness in how monsters
react to characters of the same alignment.  Explicitly force it to be
hostile for that outcome.

     Also, for the "it's about time" result, suppress the "It vanishes"
message when the character doesn't see the djinni depart.
This commit is contained in:
nethack.rankin
2004-06-29 02:06:36 +00:00
parent a0fa995471
commit 74c5d3f004
2 changed files with 5 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ if you were Poison_resistant, only a *blessed* potion of sickness caused
loss of hitpoints
shopkeeper removal of trap from shop doorway yields an open door instead of
a closed one if an intact open door is present
guarantee that hostile djinn released from bottles really are hostile
Platform- and/or Interface-Specific Fixes

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)potion.c 3.4 2004/06/12 */
/* SCCS Id: @(#)potion.c 3.4 2004/06/28 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -2081,10 +2081,12 @@ register struct obj *obj;
set_malign(mtmp);
break;
case 3 : verbalize("It is about time!");
pline("%s vanishes.", Monnam(mtmp));
if (canspotmon(mtmp)) pline("%s vanishes.", Monnam(mtmp));
mongone(mtmp);
break;
default: verbalize("You disturbed me, fool!");
mtmp->mpeaceful = FALSE;
set_malign(mtmp);
break;
}
}