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

Function is_art

src/artifact.c:2807–2813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2805/* #define is_art(o,art) ((o) && (o)->oartifact == (art)) */
2806
2807boolean
2808is_art(struct obj *obj, int art)
2809{
2810 if (obj && obj->oartifact == art)
2811 return TRUE;
2812 return FALSE;
2813}
2814
2815/* #define get_artifact(o) \
2816 (((o) && ((o)->artifact > 0 && (o)->artifact < AFTER_LAST_ARTIFACT)) \

Callers 15

setuwepFunction · 0.85
resists_blnd_by_artiFunction · 0.85
mk_mplayerFunction · 0.85
attack_checksFunction · 0.85
hmon_hitmon_weapon_meleeFunction · 0.85
hmon_hitmon_weaponFunction · 0.85
m_is_steadfastFunction · 0.85
mhitm_knockbackFunction · 0.85
select_rwepFunction · 0.85
set_artifact_intrinsicFunction · 0.85
spec_dbonFunction · 0.85
artifact_hitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected