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

Function doinvoke

src/artifact.c:1748–1759  ·  view source on GitHub ↗

the #invoke command */

Source from the content-addressed store, hash-verified

1746
1747/* the #invoke command */
1748int
1749doinvoke(void)
1750{
1751 struct obj *obj;
1752
1753 obj = getobj("invoke", invoke_ok, GETOBJ_PROMPT);
1754 if (!obj)
1755 return ECMD_CANCEL;
1756 if (!retouch_object(&obj, FALSE))
1757 return ECMD_TIME;
1758 return arti_invoke(obj);
1759}
1760
1761staticfn void
1762nothing_special(struct obj *obj)

Callers

nothing calls this directly

Calls 3

getobjFunction · 0.85
retouch_objectFunction · 0.85
arti_invokeFunction · 0.85

Tested by

no test coverage detected