From: <gi...@cr...> - 2025-07-27 15:25:10
|
via 75a88694f095de48c0b1d88cafdae271a2da9a46 (commit) from f09bc6260025d166f580e7d730ce0f96896a6767 (commit) ----------------------------------------------------------------------- commit 75a88694f095de48c0b1d88cafdae271a2da9a46 Author: Implojin <imp...@gm...> Date: Sun Jul 27 10:19:58 2025 -0500 Add a confirm prompt to trove exits (dilly, particleface) Players have had some unfortunate confusion about trove exits vs. transporters, leading to players unintentionally exiting troves early, and adding a prompt here is reasonable behavior. It would probably also be nice to differentiate the trove exit portal tile from the transporter tile a bit more? ----------------------------------------------------------------------- Summary of changes: crawl-ref/source/main.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc index 508644b0f7..94dcab3c96 100644 --- a/crawl-ref/source/main.cc +++ b/crawl-ref/source/main.cc @@ -1494,6 +1494,17 @@ static bool _prompt_stairs(dungeon_feature_type ygrd, bool down, bool shaft) } } + // Exiting Troves early. + if (ygrd == DNGN_EXIT_TROVE + && you.depth == brdepth[BRANCH_TROVE]) + { + if (!yesno("Are you sure you want to leave this trove?", false, 'n')) + { + canned_msg(MSG_OK); + return false; + } + } + // Leaving ziggurat figurines behind. if (ygrd == DNGN_EXIT_ZIGGURAT && you.depth == brdepth[BRANCH_ZIGGURAT] -- Dungeon Crawl Stone Soup |