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:
@@ -402,9 +402,9 @@ dipfountain(register struct obj *obj)
|
||||
pline(
|
||||
"From the murky depths, a hand reaches up to bless the sword.");
|
||||
pline("As the hand retreats, the fountain disappears!");
|
||||
obj = oname(obj, artiname(ART_EXCALIBUR), ONAME_FOUND_ARTI);
|
||||
obj = oname(obj, artiname(ART_EXCALIBUR),
|
||||
ONAME_VIA_DIP | ONAME_KNOW_ARTI);
|
||||
discover_artifact(ART_EXCALIBUR);
|
||||
(void) artifact_viadip(obj, TRUE);
|
||||
bless(obj);
|
||||
obj->oeroded = obj->oeroded2 = 0;
|
||||
obj->oerodeproof = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user