Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use clear_npcs in clear_map (#30051)
* Use clear_npcs in clear_map clear_map had a similar flaw to the one fixed in #30031 affecting npc_can_target_player. Fix it in the same way. This wasn't obviously affecting any tests, but it makes sense to fix it pre-emptively. * Before killing npcs, ensure correct ones loaded Some tests (default_overmap_generation_has_non_mandatory_specials_at_origin) overwrite overmaps, which leads to orphaned NPCs. Unloading and reloading the NPCs ensures that all the active NPCs are known to the overmap.
- Loading branch information