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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user