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.
This commit is contained in:
PatR
2026-02-15 11:48:40 -08:00
parent fe7b3ce09d
commit 651a91f94c
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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();
}