| 156 | } |
| 157 | |
| 158 | static 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 |