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

Function initialize_trigger_cache

plugins/reveal.cpp:158–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static void initialize_trigger_cache() {
159 for (auto & horror : world->event.encased_horrors)
160 cache_tiles(horror->tiles);
161 for (auto & hollow : world->event.deep_vein_hollows)
162 cache_tiles(hollow->tiles);
163 for (auto & treasure : world->event.divine_treasures)
164 cache_tiles(treasure->tiles);
165}
166
167// identify blocks that have tiles within the box that contains the unit's
168// 26 tile radius vision cylinder

Callers 1

revealFunction · 0.85

Calls 1

cache_tilesFunction · 0.85

Tested by

no test coverage detected