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

Function you_have

src/wizard.c:215–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215staticfn boolean
216you_have(int mask)
217{
218 switch (mask) {
219 case M3_WANTSAMUL:
220 return (boolean) u.uhave.amulet;
221 case M3_WANTSBELL:
222 return (boolean) u.uhave.bell;
223 case M3_WANTSCAND:
224 return (boolean) u.uhave.menorah;
225 case M3_WANTSBOOK:
226 return (boolean) u.uhave.book;
227 case M3_WANTSARTI:
228 return (boolean) u.uhave.questart;
229 default:
230 break;
231 }
232 return 0;
233}
234
235staticfn unsigned long
236target_on(int mask, struct monst *mtmp)

Callers 6

target_onFunction · 0.85
background_enlightenmentFunction · 0.85
basics_enlightenmentFunction · 0.85
status_enlightenmentFunction · 0.85
weapon_insightFunction · 0.85
attributes_enlightenmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected