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

Function spec_m2

src/artifact.c:1064–1072  ·  view source on GitHub ↗

return the M2 flags of monster that an artifact's special attacks apply * against */

Source from the content-addressed store, hash-verified

1062/* return the M2 flags of monster that an artifact's special attacks apply
1063 * against */
1064long
1065spec_m2(struct obj *otmp)
1066{
1067 const struct artifact *artifact = get_artifact(otmp);
1068
1069 if (artifact != &artilist[ART_NONARTIFACT])
1070 return artifact->mtype;
1071 return 0L;
1072}
1073
1074/* special attack bonus */
1075int

Callers 1

set_artifact_intrinsicFunction · 0.85

Calls 1

get_artifactFunction · 0.85

Tested by

no test coverage detected