MCPcopy Create free account
hub / github.com/DFHack/dfhack / reset_state

Function reset_state

plugins/reveal.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49static int32_t cycle_timestamp = 0; // world->frame_counter at last reveal
50
51static void reset_state() {
52 is_active = false;
53 trigger_cache.clear();
54 hidesaved.clear();
55 revealed = NOT_REVEALED;
56 cycle_timestamp = 0;
57}
58
59/*
60 * Anything that might reveal Hell or trigger gemstone pillar events is unsafe.

Callers 4

unrevealFunction · 0.85
revforgetFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected