"someone"/"something" instead of "it"
I thought there were more places that checked for "it" and substituted "someone" or "something". Perhaps there are and I'm just not finding them now. Anyway, this extends x_monnam() and adds some_mon_nam() and Some_Monnam() to do that during monster name formatting instead of having various bits of code try fix it up after the fact. The fixups could be fooled by monsters given the name "it" or "It"; x_monnam() won't be.
This commit is contained in:
@@ -745,12 +745,7 @@ gd_pick_corridor_gold(struct monst *grd, int goldx, int goldy)
|
||||
}
|
||||
|
||||
if (see_it) { /* cansee(goldx, goldy) */
|
||||
char monnambuf[BUFSZ];
|
||||
|
||||
Strcpy(monnambuf, Monnam(grd));
|
||||
if (!strcmpi(monnambuf, "It"))
|
||||
Strcpy(monnambuf, "Someone");
|
||||
pline("%s%s picks up the gold%s.", monnambuf,
|
||||
pline("%s%s picks up the gold%s.", Some_Monnam(grd),
|
||||
(grd->mpeaceful && EGD(grd)->warncnt > 5)
|
||||
? " calms down and" : "",
|
||||
under_u ? " from beneath you" : "");
|
||||
|
||||
Reference in New Issue
Block a user