mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-07-30 01:12:25 +01:00
Fix unique statue objnam
This commit is contained in:
parent
19e63346fe
commit
9f8b1d4b9d
1 changed files with 4 additions and 4 deletions
|
@ -1709,10 +1709,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