code maintenance bit to white-list current "You hear" instances

Flag existing occurrences of "You hear" as "Deaf-aware" so
that a grep for that string in the future doesn't need to
trigger further investigation of those.
This commit is contained in:
nhmall
2019-11-04 12:28:25 -05:00
parent efbef0f22c
commit 25edd16945
10 changed files with 14 additions and 9 deletions

View File

@@ -403,5 +403,8 @@ autopickup exception priority change in pull request #226
Code Cleanup and Reorganization
-------------------------------
began to add some function caller BREADCRUMBS to aid debugging
flag existing occurrences of "You hear" as "Deaf-aware" to aid in
future maintenance

View File

@@ -1205,7 +1205,7 @@ dokick()
!Blind
? "Muddy waste pops up from the drain"
: !Deaf
? "You hear a sloshing sound"
? "You hear a sloshing sound" /* Deaf-aware */
: "Something splashes you in the", buf);
if (!(maploc->looted & S_LRING)) { /* once per sink */
if (!Blind)

View File

@@ -755,7 +755,7 @@ doengrave()
}
Strcpy(post_engr_text,
(Blind && !Deaf)
? "You hear drilling!"
? "You hear drilling!" /* Deaf-aware */
: Blind
? "You feel tremors."
: IS_GRAVE(levl[u.ux][u.uy].typ)

View File

@@ -72,7 +72,7 @@ boolean undirected;
pline("%s points %s.", Monnam(mtmp), point_msg);
} else if ((!(moves % 4) || !rn2(4))) {
if (!Deaf)
Norep("You hear a mumbled curse.");
Norep("You hear a mumbled curse."); /* Deaf-aware */
}
}

View File

@@ -1365,7 +1365,7 @@ fumaroles()
}
}
if (snd && !Deaf)
Norep("You hear a %swhoosh!", loud ? "loud " : "");
Norep("You hear a %swhoosh!", loud ? "loud " : ""); /* Deaf-aware */
}
/*

View File

@@ -188,7 +188,8 @@ struct monst *bugler; /* monster that played instrument */
if (canseemon(mtmp))
pline("%s is now ready for battle!", Monnam(mtmp));
else if (!Deaf)
Norep("You hear the rattle of battle gear being readied.");
Norep("%s the rattle of battle gear being readied.",
"You hear"); /* Deaf-aware */
} else if ((distm = ((bugler == &youmonst)
? distu(mtmp->mx, mtmp->my)
: dist2(bugler->mx, bugler->my, mtmp->mx,

View File

@@ -367,7 +367,7 @@ VA_DECL(const char *, line)
else if (Unaware)
YouPrefix(tmp, "You dream that you hear ", line);
else
YouPrefix(tmp, "You hear ", line);
YouPrefix(tmp, "You hear ", line); /* Deaf-aware */
vpline(strcat(tmp, line), VA_ARGS);
VA_END();
}

View File

@@ -2990,7 +2990,7 @@ boolean peaceful, silent;
Norep("%s booms: \"%s, you are a thief!\"",
Shknam(shkp), plname);
} else if (!Deaf) {
Norep("You hear a scream, \"Thief!\"");
Norep("You hear a scream, \"Thief!\""); /* Deaf-aware */
}
}
hot_pursuit(shkp);

View File

@@ -2637,7 +2637,8 @@ register struct monst *mtmp;
a_your[trap->madeby_u]);
}
if (!in_sight && !Deaf)
pline("Kaablamm! You hear an explosion in the distance!");
pline("Kaablamm! %s an explosion in the distance!",
"You hear"); /* Deaf-aware */
blow_up_landmine(trap);
/* explosion might have destroyed a drawbridge; don't
dish out more damage if monster is already dead */

View File

@@ -4442,7 +4442,7 @@ short exploding_wand_typ;
melt_ice(x, y, (char *) 0);
} else if (is_pool(x, y)) {
const char *msgtxt = (!Deaf)
? "You hear hissing gas."
? "You hear hissing gas." /* Deaf-aware */
: "That seemed remarkably uneventful.";
if (lev->typ != POOL) { /* MOAT or DRAWBRIDGE_UP */