1
0
Fork 0
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:
NeroOneTrueKing 2020-08-04 13:16:25 -05:00
parent 19e63346fe
commit 9f8b1d4b9d

View file

@ -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