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:
@@ -2284,7 +2284,7 @@ discard_minvent(struct monst *mtmp, boolean uncreate_artifacts)
|
||||
/* this has now become very similar to m_useupall()... */
|
||||
extract_from_minvent(mtmp, otmp, TRUE, TRUE);
|
||||
if (uncreate_artifacts && otmp->oartifact)
|
||||
artifact_exists(otmp, safe_oname(otmp), FALSE, FALSE);
|
||||
artifact_exists(otmp, safe_oname(otmp), FALSE, ONAME_NO_FLAGS);
|
||||
obfree(otmp, (struct obj *) 0); /* dealloc_obj() isn't sufficient */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user