From 12228cac498f86617bb74998ed4ddae56d6c3c0d Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 6 Dec 2024 22:10:17 +0200 Subject: [PATCH] Tourists gain experience by going to new dungeon levels --- doc/fixes3-7-0.txt | 3 ++- src/do.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index c688906349..2e56f3f83a 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -2730,7 +2730,8 @@ enlightenment/attribute disclosure for saving-grace: include a line for have "X " for explore mode, or "D " for debug mode if any of the games shown in its menu weren't saved during normal play; if they're all normal play, the prefix is suppressed -tourists gain experience by seeing new types of creatures up close +tourists gain experience by seeing new types of creatures up close, and + going to new dungeon levels Platform- and/or Interface-Specific New Features diff --git a/src/do.c b/src/do.c index fe07407c12..43376b5293 100644 --- a/src/do.c +++ b/src/do.c @@ -1946,6 +1946,11 @@ goto_level( (void) describe_level(dloc, 2); livelog_printf(major ? LL_ACHIEVE : LL_DEBUG, "entered %s", dloc); + + if (Role_if(PM_TOURIST)) { + more_experienced(level_difficulty(), 0); + newexplevel(); + } } assign_level(&u.uz0, &u.uz); /* reset u.uz0 */