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

Function reset_occupations

src/cmd.c:194–200  ·  view source on GitHub ↗

If you have moved since initially setting some occupations, they * now shouldn't be able to restart. * * The basic rule is that if you are carrying it, you can continue * since it is with you. If you are acting on something at a distance, * your orientation to it must have changed when you moved. * * The exception to this is taking off items, since they can be taken * off in a number of w

Source from the content-addressed store, hash-verified

192 * Setting traps.
193 */
194void
195reset_occupations(void)
196{
197 reset_remarm();
198 reset_pick();
199 reset_trapset();
200}
201
202/* If a time is given, use it to timeout this function, otherwise the
203 * function times out by its own means.

Callers 4

dodropFunction · 0.85
doddropFunction · 0.85
domove_coreFunction · 0.85
gulpmuFunction · 0.85

Calls 3

reset_remarmFunction · 0.85
reset_pickFunction · 0.85
reset_trapsetFunction · 0.85

Tested by

no test coverage detected