sound cleanup
+ Separate the two uses of flags.soundok. + Player-settable option is now called "acoustics". + Deafness is now handled as a full-fledged attribute. + Check for deafness in You_hear(), rather than caller. + Check for deafness in caller, rather than verbalize(), because gods can speak to characters in spite of deafness. + Since changes are being made to prop.h, reorder it to the same order as youprop.h and enlightenment. There are still some extraneous checks and missing checks for deafness, which will be followed up in a future patch. Because of the size of this patch and its savefile incompatibilities, it is only being applied to the trunk code. Portions of this patch were written by Michael Allison.
This commit is contained in:
@@ -503,8 +503,10 @@ resurrect()
|
||||
if (mtmp) {
|
||||
mtmp->msleeping = mtmp->mtame = mtmp->mpeaceful = 0;
|
||||
set_malign(mtmp);
|
||||
pline("A voice booms out...");
|
||||
verbalize("So thou thought thou couldst %s me, fool.", verb);
|
||||
if (!Deaf) {
|
||||
pline("A voice booms out...");
|
||||
verbalize("So thou thought thou couldst %s me, fool.", verb);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -594,6 +596,8 @@ void
|
||||
cuss(mtmp)
|
||||
register struct monst *mtmp;
|
||||
{
|
||||
if (Deaf)
|
||||
return;
|
||||
if (mtmp->iswiz) {
|
||||
if (!rn2(5)) /* typical bad guy action */
|
||||
pline("%s laughs fiendishly.", Monnam(mtmp));
|
||||
|
||||
Reference in New Issue
Block a user