no renaming of unique monsters with proper names
Not all leaders and nemeses have M2_PNAME set, so they require an extra check to result in the expected behavior.
This commit is contained in:
@@ -324,6 +324,7 @@ mimics that are detected but not seen should not display as their mimiced
|
|||||||
form when the detection ends
|
form when the detection ends
|
||||||
not all cavemen are human, so avoid using human in quest messages
|
not all cavemen are human, so avoid using human in quest messages
|
||||||
tengu is singular and plural, some rumors were incorrect
|
tengu is singular and plural, some rumors were incorrect
|
||||||
|
don't let leader or nemesis be renamed
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
@@ -275,7 +275,9 @@ do_mname()
|
|||||||
/* strip leading and trailing spaces; unnames monster if all spaces */
|
/* strip leading and trailing spaces; unnames monster if all spaces */
|
||||||
(void)mungspaces(buf);
|
(void)mungspaces(buf);
|
||||||
|
|
||||||
if (mtmp->iswiz || type_is_pname(mtmp->data))
|
if (mtmp->iswiz || type_is_pname(mtmp->data) ||
|
||||||
|
mtmp->data->msound == MS_LEADER ||
|
||||||
|
mtmp->data->msound == MS_NEMESIS)
|
||||||
pline("%s doesn't like being called names!", Monnam(mtmp));
|
pline("%s doesn't like being called names!", Monnam(mtmp));
|
||||||
else (void) christen_monst(mtmp, buf);
|
else (void) christen_monst(mtmp, buf);
|
||||||
return(0);
|
return(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user