Show level annotation on level entry

Idea by Chris Smith, via Unnethack
This commit is contained in:
Pasi Kallinen
2015-04-26 10:46:38 +03:00
parent 8624709c0d
commit 4e067f5f2b
3 changed files with 15 additions and 0 deletions

View File

@@ -1069,6 +1069,7 @@ boolean at_stairs, falling, portal;
boolean new = FALSE; /* made a new level? */
struct monst *mtmp;
char whynot[BUFSZ];
char *annotation;
if (dunlev(newlevel) > dunlevs_in_dungeon(newlevel))
newlevel->dlevel = dunlevs_in_dungeon(newlevel);
@@ -1458,6 +1459,9 @@ boolean at_stairs, falling, portal;
save_currentstate();
#endif
if ((annotation = get_annotation(&u.uz)))
You("remember this level as %s.", annotation);
/* assume this will always return TRUE when changing level */
(void) in_out_region(u.ux, u.uy);
(void) pickup(1);