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

Function remove_mon_from_regions

src/region.c:637–645  ·  view source on GitHub ↗

* Remove monster from all regions it was in (ie monster just died) */

Source from the content-addressed store, hash-verified

635 * Remove monster from all regions it was in (ie monster just died)
636 */
637void
638remove_mon_from_regions(struct monst *mon)
639{
640 int i;
641
642 for (i = 0; i < svn.n_regions; i++)
643 if (mon_in_region(gr.regions[i], mon))
644 remove_mon_from_reg(gr.regions[i], mon);
645}
646
647#endif /*0*/
648

Callers

nothing calls this directly

Calls 2

mon_in_regionFunction · 0.85
remove_mon_from_regFunction · 0.85

Tested by

no test coverage detected