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

Function which_arti

src/wizard.c:141–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139#define M_Wants(mask) (mtmp->data->mflags3 & (mask))
140
141staticfn short
142which_arti(int mask)
143{
144 switch (mask) {
145 case M3_WANTSAMUL:
146 return AMULET_OF_YENDOR;
147 case M3_WANTSBELL:
148 return BELL_OF_OPENING;
149 case M3_WANTSCAND:
150 return CANDELABRUM_OF_INVOCATION;
151 case M3_WANTSBOOK:
152 return SPE_BOOK_OF_THE_DEAD;
153 default:
154 break; /* 0 signifies quest artifact */
155 }
156 return 0;
157}
158
159/*
160 * If "otyp" is zero, it triggers a check for the quest_artifact,

Callers 2

target_onFunction · 0.85
tacticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected