talking to quest guardians from other class
prevent quest guardians from other classes from talking to you as if they were your quest guardian
This commit is contained in:
@@ -133,6 +133,8 @@ digging a pit while stuck in the floor should always free the player
|
|||||||
quest guardians can no longer be created via stone-to-flesh on their statue
|
quest guardians can no longer be created via stone-to-flesh on their statue
|
||||||
stone-to-flesh no longer silently ignored by a statue of a unique monster
|
stone-to-flesh no longer silently ignored by a statue of a unique monster
|
||||||
wishing for quest guardian corpse now gives a generic corpse of the species
|
wishing for quest guardian corpse now gives a generic corpse of the species
|
||||||
|
prevent quest guardians from other classes from talking to you as if they
|
||||||
|
were your quest guardian
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+7
-1
@@ -435,6 +435,12 @@ register struct monst *mtmp;
|
|||||||
if (!flags.soundok) return(0);
|
if (!flags.soundok) return(0);
|
||||||
if (is_silent(ptr)) return(0);
|
if (is_silent(ptr)) return(0);
|
||||||
|
|
||||||
|
/* Make sure its your role's quest quardian; adjust if not */
|
||||||
|
if (ptr->msound == MS_GUARDIAN && ptr != &mons[urole.guardnum]) {
|
||||||
|
int mndx = monsndx(ptr);
|
||||||
|
ptr = &mons[genus(mndx)];
|
||||||
|
}
|
||||||
|
|
||||||
/* be sure to do this before talking; the monster might teleport away, in
|
/* be sure to do this before talking; the monster might teleport away, in
|
||||||
* which case we want to check its pre-teleport position
|
* which case we want to check its pre-teleport position
|
||||||
*/
|
*/
|
||||||
@@ -578,7 +584,7 @@ register struct monst *mtmp;
|
|||||||
pline_msg = "squeaks.";
|
pline_msg = "squeaks.";
|
||||||
break;
|
break;
|
||||||
case MS_SQAWK:
|
case MS_SQAWK:
|
||||||
if (mtmp->data == &mons[PM_RAVEN] && !mtmp->mpeaceful)
|
if (ptr == &mons[PM_RAVEN] && !mtmp->mpeaceful)
|
||||||
verbl_msg = "Nevermore!";
|
verbl_msg = "Nevermore!";
|
||||||
else
|
else
|
||||||
pline_msg = "squawks.";
|
pline_msg = "squawks.";
|
||||||
|
|||||||
Reference in New Issue
Block a user