mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-07-28 00:12:23 +01:00
Merge pull request #1058 from NeroOneTrueKing/patch-statue-objnam
Fix unique statue objnam
This commit is contained in:
commit
b27814dc8d
1 changed files with 4 additions and 4 deletions
|
@ -1716,10 +1716,10 @@ boolean with_price;
|
|||
/* Reminder: Don't use an() on anything that could call xname/doname inside xname/doname */
|
||||
/* it is okay to call an() on mons[].mname, since that is a string constant */
|
||||
if (typ == STATUE || typ == FIGURINE) {
|
||||
Sprintf(eos(buf), " of %s",
|
||||
((mons[obj->corpsenm].geno & G_UNIQ) && obj->corpsenm != PM_GOD && !type_is_pname(&mons[obj->corpsenm])) ? "the " :
|
||||
an(mons[obj->corpsenm].mname)
|
||||
);
|
||||
if ((mons[obj->corpsenm].geno & G_UNIQ) && obj->corpsenm != PM_GOD && !type_is_pname(&mons[obj->corpsenm]))
|
||||
Sprintf(eos(buf), " of the %s", mons[obj->corpsenm].mname);
|
||||
else
|
||||
Sprintf(eos(buf), " of %s", an(mons[obj->corpsenm].mname));
|
||||
}
|
||||
}
|
||||
#ifdef SORTLOOT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue