1
0
Fork 0
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:
Chris-plus-alphanumericgibberish 2020-08-08 21:18:37 -04:00 committed by GitHub
commit b27814dc8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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