more artifact tracking

This should have been broken up into multiple pieces but they're
all lumped together.  I did ultimately throw away a fourth change.

Implement artiexist[].bones and artiexist[].rndm artifact creation
tracking bits that were added recently.  Doesn't need to increment
EDITLEVEL this time.

Add a new wizard mode feature:  if you use `a to show discovered
artifacts, it will prompt about whether to show the tracking bits
for all artifacts instead.  If not using menustyle traditional,
you need at least one artifact to have been discovered in order to
have 'a' choice available when selecting what class of discovered
objects to show for the '`' command.

artifact_gift(), aritfact_wish(), and so forth return a value that
none of the existing callers use, so cast their calls to (void).
This commit is contained in:
PatR
2022-03-11 11:00:44 -08:00
parent 0fab87500e
commit 7a335eb030
8 changed files with 87 additions and 13 deletions

View File

@@ -71,6 +71,7 @@ resetobjs(struct obj *ochain, boolean restore)
free_oname(otmp);
} else {
artifact_exists(otmp, safe_oname(otmp), TRUE, FALSE);
(void) artifact_bones(otmp, TRUE);
}
} else if (has_oname(otmp)) {
sanitize_name(ONAME(otmp));