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

Function mapseen_temple

src/dungeon.c:3266–3278  ·  view source on GitHub ↗

ARGUSED*/ valley and sanctum levels get automatic annotation once their temple is entered */

Source from the content-addressed store, hash-verified

3264/* valley and sanctum levels get automatic annotation once their temple
3265 is entered */
3266void
3267mapseen_temple(
3268 struct monst *priest UNUSED) /* not used; might be useful someday */
3269{
3270 mapseen *mptr = find_mapseen(&u.uz);
3271
3272 if (!mptr)
3273 return;
3274 if (Is_valley(&u.uz))
3275 mptr->flags.valley = 1;
3276 else if (Is_sanctum(&u.uz))
3277 mptr->flags.msanctum = 1;
3278}
3279
3280/* room entry message has just been delivered so learn room even if blind */
3281void

Callers 1

intempleFunction · 0.85

Calls 1

find_mapseenFunction · 0.85

Tested by

no test coverage detected