fix H4101: can hear pets while deaf
This is a fix for H4101, bz192. add non-audio (felt) outcome to yelp() This also add #wizintrinsic command because testing this was a pain without a simple, straightforward way to go deaf that didn't time-out before the situation being tested recurred.
This commit is contained in:
14
src/sounds.c
14
src/sounds.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 sounds.c $NHDT-Date: 1450306219 2015/12/16 22:50:19 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.75 $ */
|
||||
/* NetHack 3.6 sounds.c $NHDT-Date: 1450461007 2015/12/18 17:50:07 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.76 $ */
|
||||
/* Copyright (c) 1989 Janet Walz, Mike Threepoint */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -387,23 +387,23 @@ register struct monst *mtmp;
|
||||
else
|
||||
switch (mtmp->data->msound) {
|
||||
case MS_MEW:
|
||||
yelp_verb = "yowl";
|
||||
yelp_verb = (!Deaf) ? "yowl" : "arch";
|
||||
break;
|
||||
case MS_BARK:
|
||||
case MS_GROWL:
|
||||
yelp_verb = "yelp";
|
||||
yelp_verb = (!Deaf) ? "yelp" : "recoil";
|
||||
break;
|
||||
case MS_ROAR:
|
||||
yelp_verb = "snarl";
|
||||
yelp_verb = (!Deaf) ? "snarl" : "bluff";
|
||||
break;
|
||||
case MS_SQEEK:
|
||||
yelp_verb = "squeal";
|
||||
yelp_verb = (!Deaf) ? "squeal" : "quivers";
|
||||
break;
|
||||
case MS_SQAWK:
|
||||
yelp_verb = "screak";
|
||||
yelp_verb = (!Deaf) ? "screak" : "thrash";
|
||||
break;
|
||||
case MS_WAIL:
|
||||
yelp_verb = "wail";
|
||||
yelp_verb = (!Deaf) ? "wail" : "cringe";
|
||||
break;
|
||||
}
|
||||
if (yelp_verb) {
|
||||
|
||||
Reference in New Issue
Block a user