MCPcopy Index your code
hub / github.com/NetHack/NetHack / artitouch

Function artitouch

src/quest.c:124–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void
125artitouch(struct obj *obj)
126{
127 if (!Qstat(touched_artifact)) {
128 /* in case we haven't seen the item yet (ie, currently blinded),
129 this quest message describes it by name so mark it as seen */
130 observe_object(obj);
131 /* only give this message once */
132 Qstat(touched_artifact) = TRUE;
133 qt_pager("gotit");
134 exercise(A_WIS, TRUE);
135 }
136}
137
138/* external hook for do.c (level change check) */
139boolean

Callers 1

addinv_core1Function · 0.85

Calls 3

observe_objectFunction · 0.85
qt_pagerFunction · 0.85
exerciseFunction · 0.85

Tested by

no test coverage detected