artifact tracking again
Redo the recent artifact creation stuff by replacing several nearly identical routines with one more general one. Also adds a tracking bit for one or two more creation methods. That changed artiexist[] from an array of structs holding 8 or less bits to one holding 9, so bump EDITLEVEL in case the total size changed.
This commit is contained in:
@@ -70,8 +70,8 @@ resetobjs(struct obj *ochain, boolean restore)
|
||||
if (has_oname(otmp))
|
||||
free_oname(otmp);
|
||||
} else {
|
||||
artifact_exists(otmp, safe_oname(otmp), TRUE, FALSE);
|
||||
(void) artifact_bones(otmp, TRUE);
|
||||
artifact_exists(otmp, safe_oname(otmp), TRUE,
|
||||
ONAME_BONES);
|
||||
}
|
||||
} else if (has_oname(otmp)) {
|
||||
sanitize_name(ONAME(otmp));
|
||||
|
||||
Reference in New Issue
Block a user