fainting while wielding a cockatrice corpse will be fatal
Sunsword's light radius depends on its curse/bless state
Add M-C and M-R meta-key shortcuts for #conduct and #ride, respectively
+can now use ESC to cancel out of prompts for playing musical instruments
Platform- and/or Interface-Specific New Features
/* NetHack 3.5 music.c $Date$ $Revision$ */
-/* SCCS Id: @(#)music.c 3.5 2007/07/08 */
/* Copyright (c) 1989 by Jean-Christophe Collet */
/* NetHack may be freely redistributed. See license for details. */
return(0);
}
if (instr->otyp != LEATHER_DRUM && instr->otyp != DRUM_OF_EARTHQUAKE) {
- c = yn("Improvise?");
+ c = ynq("Improvise?");
+ if (c == 'q') goto nevermind;
}
if (c == 'n') {
- if (u.uevent.uheard_tune == 2 && yn("Play the passtune?") == 'y') {
+ if (u.uevent.uheard_tune == 2) c = ynq("Play the passtune?");
+ if (c == 'q') {
+ goto nevermind;
+ } else if (c == 'y') {
Strcpy(buf, tune);
} else {
getlin("What tune are you playing? [5 notes, A-G]", buf);
(void)mungspaces(buf);
+ if (*buf == '\033') goto nevermind;
+
/* convert to uppercase and change any "H" to the expected "B" */
for (s = buf; *s; s++) {
#ifndef AMIGA
return 1;
} else
return do_improvisation(instr);
+
+ nevermind:
+ pline(Never_mind);
+ return 0;
}
#ifdef UNIX386MUSIC