noit_mon_nam()
Change noit_mon_nam() to work as if it was noit_y_monnam() (without renaming it or adding yet another monster naming routine) to use "your <mon>" rather than "the <mon>" when <mon> is a pet that can be seen (so not the case where "it" gets replaced by "someone" or "something").
This commit is contained in:
+8
-7
@@ -777,12 +777,12 @@ rndghostname(void)
|
|||||||
* x_monnam is the generic monster-naming function.
|
* x_monnam is the generic monster-naming function.
|
||||||
* seen unseen detected named
|
* seen unseen detected named
|
||||||
* mon_nam: the newt it the invisible orc Fido
|
* mon_nam: the newt it the invisible orc Fido
|
||||||
* noit_mon_nam:the newt (as if detected) the invisible orc Fido
|
* noit_mon_nam:your newt (as if detected) your invisible orc Fido
|
||||||
* some_mon_nam:the newt someone the invisible orc Fido
|
* some_mon_nam:the newt someone the invisible orc Fido
|
||||||
* or something
|
* or something
|
||||||
* l_monnam: newt it invisible orc dog called Fido
|
* l_monnam: newt it invisible orc dog called Fido
|
||||||
* Monnam: The newt It The invisible orc Fido
|
* Monnam: The newt It The invisible orc Fido
|
||||||
* noit_Monnam: The newt (as if detected) The invisible orc Fido
|
* noit_Monnam: Your newt (as if detected) Your invisible orc Fido
|
||||||
* Some_Monnam: The newt Someone The invisible orc Fido
|
* Some_Monnam: The newt Someone The invisible orc Fido
|
||||||
* or Something
|
* or Something
|
||||||
* Adjmonnam: The poor newt It The poor invisible orc The poor Fido
|
* Adjmonnam: The poor newt It The poor invisible orc The poor Fido
|
||||||
@@ -1035,14 +1035,15 @@ mon_nam(struct monst *mtmp)
|
|||||||
(has_mgivenname(mtmp)) ? SUPPRESS_SADDLE : 0, FALSE);
|
(has_mgivenname(mtmp)) ? SUPPRESS_SADDLE : 0, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* print the name as if mon_nam() was called, but assume that the player
|
/* print the name as if mon_nam() (y_monnam() if tame) was called, but
|
||||||
* can always see the monster--used for probing and for monsters aggravating
|
assume that the player can always see the monster--used for probing and
|
||||||
* the player with a cursed potion of invisibility
|
for monsters aggravating the player with a cursed potion of invisibility;
|
||||||
*/
|
also used for pet moving "reluctantly" onto cursed object when that pet
|
||||||
|
can be seen either before or after it moves */
|
||||||
char *
|
char *
|
||||||
noit_mon_nam(struct monst *mtmp)
|
noit_mon_nam(struct monst *mtmp)
|
||||||
{
|
{
|
||||||
return x_monnam(mtmp, ARTICLE_THE, (char *) 0,
|
return x_monnam(mtmp, ARTICLE_YOUR, (char *) 0,
|
||||||
(has_mgivenname(mtmp) ? (SUPPRESS_SADDLE | SUPPRESS_IT)
|
(has_mgivenname(mtmp) ? (SUPPRESS_SADDLE | SUPPRESS_IT)
|
||||||
: SUPPRESS_IT),
|
: SUPPRESS_IT),
|
||||||
FALSE);
|
FALSE);
|
||||||
|
|||||||
+1
-1
@@ -3372,7 +3372,7 @@ mstatusline(struct monst *mtmp)
|
|||||||
|
|
||||||
/* avoid "Status of the invisible newt ..., invisible" */
|
/* avoid "Status of the invisible newt ..., invisible" */
|
||||||
/* and unlike a normal mon_nam, use "saddled" even if it has a name */
|
/* and unlike a normal mon_nam, use "saddled" even if it has a name */
|
||||||
Strcpy(monnambuf, x_monnam(mtmp, ARTICLE_THE, (char *) 0,
|
Strcpy(monnambuf, x_monnam(mtmp, ARTICLE_YOUR, (char *) 0,
|
||||||
(SUPPRESS_IT | SUPPRESS_INVISIBLE), FALSE));
|
(SUPPRESS_IT | SUPPRESS_INVISIBLE), FALSE));
|
||||||
|
|
||||||
pline("Status of %s (%s, %s): Level %d HP %d(%d) AC %d%s.",
|
pline("Status of %s (%s, %s): Level %d HP %d(%d) AC %d%s.",
|
||||||
|
|||||||
Reference in New Issue
Block a user