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:
@@ -3058,8 +3058,9 @@ xkilled(
|
||||
if (mdat->msize < MZ_HUMAN && otyp != FIGURINE
|
||||
/* oc_big is also oc_bimanual and oc_bulky */
|
||||
&& (otmp->owt > 30 || objects[otyp].oc_big)) {
|
||||
if (otmp->oartifact)
|
||||
artifact_exists(otmp, safe_oname(otmp), FALSE, FALSE);
|
||||
if (otmp->oartifact) /* un-create */
|
||||
artifact_exists(otmp, safe_oname(otmp), FALSE,
|
||||
ONAME_NO_FLAGS);
|
||||
delobj(otmp);
|
||||
} else if (!flooreffects(otmp, x, y, nomsg ? "" : "fall")) {
|
||||
place_object(otmp, x, y);
|
||||
|
||||
Reference in New Issue
Block a user