MCPcopy Create free account
hub / github.com/NetHack/NetHack / confers_luck

Function confers_luck

src/artifact.c:525–533  ·  view source on GitHub ↗

used so that callers don't need to known about SPFX_ codes */

Source from the content-addressed store, hash-verified

523
524/* used so that callers don't need to known about SPFX_ codes */
525boolean
526confers_luck(struct obj *obj)
527{
528 /* might as well check for this too */
529 if (obj->otyp == LUCKSTONE)
530 return TRUE;
531
532 return (boolean) (obj->oartifact && spec_ability(obj, SPFX_LUCK));
533}
534
535/* used to check whether a monster is getting reflection from an artifact */
536boolean

Callers 8

worst_cursed_itemFunction · 0.85
addinv_core2Function · 0.85
freeinv_coreFunction · 0.85
stone_luckFunction · 0.85
blessFunction · 0.85
unblessFunction · 0.85
curseFunction · 0.85
uncurseFunction · 0.85

Calls 1

spec_abilityFunction · 0.85

Tested by

no test coverage detected