From 651a91f94c24e7596d288ce0de6a1f6bdbe7e3ee Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 15 Feb 2026 11:48:40 -0800 Subject: [PATCH] explain Amulet wish In wizard mode, I used ^W to wish for the Amulet of Yendor and was immediately prompted for another wish. It was baffling and took a while to figure out. Give a message before initiating the wish. --- doc/fixes3-7-0.txt | 1 + src/allmain.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 6f801ae22..ebe99a2bb 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -2208,6 +2208,7 @@ when reading a T-shirt or apron, add trailing period to the slogan unless when reading an engraving, suppress the addition of a trailing period if the text already has one cursed magic whistle could teleport hero on no-teleport levels +give a brief explanation when receving a wish for acquiring the Amulet Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository diff --git a/src/allmain.c b/src/allmain.c index 7a431ea27..2db536e5e 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 allmain.c $NHDT-Date: 1744860497 2025/04/16 19:28:17 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.276 $ */ +/* NetHack 3.7 allmain.c $NHDT-Date: 1771213100 2026/02/15 19:38:20 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.286 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2012. */ /* NetHack may be freely redistributed. See license for details. */ @@ -446,6 +446,8 @@ moveloop_core(void) /* the Amulet of Yendor gives a wish when initially picked up */ if (u.uhave.amulet && !u.uevent.amulet_wish) { u.uevent.amulet_wish = 1; + display_nhwindow(WIN_MESSAGE, TRUE); + urgent_pline("The Amulet is bestowing a wish upon you!"); makewish(); }