luck artifact dependencies

Instead of adding a new artifact.h to pray.c, remove the existing
ones from attrib.c, invent.c, and mkobj.c.  This also updates the Unix
and VMS editions of Makefile.src; having stale dependencies in those
for other ports could cause unnecessary recompilation but can't break
anything in this case.
This commit is contained in:
nethack.rankin
2002-10-09 07:06:08 +00:00
parent 5a9550819c
commit a0067f97e2
8 changed files with 32 additions and 32 deletions

View File

@@ -4,7 +4,6 @@
#include "hack.h"
#include "epri.h"
#include "artifact.h"
STATIC_PTR int NDECL(prayer_done);
STATIC_DCL struct obj *NDECL(worst_cursed_item);
@@ -242,8 +241,7 @@ worst_cursed_item()
} else {
for (otmp = invent; otmp; otmp = otmp->nobj) {
if (!otmp->cursed) continue;
if (otmp->otyp == LOADSTONE || otmp->otyp == LUCKSTONE ||
(otmp->oartifact && spec_ability(otmp, SPFX_LUCK)))
if (otmp->otyp == LOADSTONE || confers_luck(otmp))
break;
}
}