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

@@ -248,6 +248,17 @@ unsigned long abil;
return((boolean)(arti && (arti->spfx & abil)));
}
/* used so that callers don't need to known about SPFX_ codes */
boolean
confers_luck(obj)
struct obj *obj;
{
/* might as well check for this too */
if (obj->otyp == LUCKSTONE) return TRUE;
return (obj->oartifact && spec_ability(obj, SPFX_LUCK));
}
#endif /* OVL0 */
#ifdef OVLB