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:
@@ -403,5 +403,8 @@ autopickup exception priority change in pull request #226
|
|||||||
Code Cleanup and Reorganization
|
Code Cleanup and Reorganization
|
||||||
-------------------------------
|
-------------------------------
|
||||||
began to add some function caller BREADCRUMBS to aid debugging
|
began to add some function caller BREADCRUMBS to aid debugging
|
||||||
|
flag existing occurrences of "You hear" as "Deaf-aware" to aid in
|
||||||
|
future maintenance
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1205,7 +1205,7 @@ dokick()
|
|||||||
!Blind
|
!Blind
|
||||||
? "Muddy waste pops up from the drain"
|
? "Muddy waste pops up from the drain"
|
||||||
: !Deaf
|
: !Deaf
|
||||||
? "You hear a sloshing sound"
|
? "You hear a sloshing sound" /* Deaf-aware */
|
||||||
: "Something splashes you in the", buf);
|
: "Something splashes you in the", buf);
|
||||||
if (!(maploc->looted & S_LRING)) { /* once per sink */
|
if (!(maploc->looted & S_LRING)) { /* once per sink */
|
||||||
if (!Blind)
|
if (!Blind)
|
||||||
|
|||||||
+1
-1
@@ -755,7 +755,7 @@ doengrave()
|
|||||||
}
|
}
|
||||||
Strcpy(post_engr_text,
|
Strcpy(post_engr_text,
|
||||||
(Blind && !Deaf)
|
(Blind && !Deaf)
|
||||||
? "You hear drilling!"
|
? "You hear drilling!" /* Deaf-aware */
|
||||||
: Blind
|
: Blind
|
||||||
? "You feel tremors."
|
? "You feel tremors."
|
||||||
: IS_GRAVE(levl[u.ux][u.uy].typ)
|
: IS_GRAVE(levl[u.ux][u.uy].typ)
|
||||||
|
|||||||
+1
-1
@@ -72,7 +72,7 @@ boolean undirected;
|
|||||||
pline("%s points %s.", Monnam(mtmp), point_msg);
|
pline("%s points %s.", Monnam(mtmp), point_msg);
|
||||||
} else if ((!(moves % 4) || !rn2(4))) {
|
} else if ((!(moves % 4) || !rn2(4))) {
|
||||||
if (!Deaf)
|
if (!Deaf)
|
||||||
Norep("You hear a mumbled curse.");
|
Norep("You hear a mumbled curse."); /* Deaf-aware */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1365,7 +1365,7 @@ fumaroles()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (snd && !Deaf)
|
if (snd && !Deaf)
|
||||||
Norep("You hear a %swhoosh!", loud ? "loud " : "");
|
Norep("You hear a %swhoosh!", loud ? "loud " : ""); /* Deaf-aware */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
+2
-1
@@ -188,7 +188,8 @@ struct monst *bugler; /* monster that played instrument */
|
|||||||
if (canseemon(mtmp))
|
if (canseemon(mtmp))
|
||||||
pline("%s is now ready for battle!", Monnam(mtmp));
|
pline("%s is now ready for battle!", Monnam(mtmp));
|
||||||
else if (!Deaf)
|
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)
|
} else if ((distm = ((bugler == &youmonst)
|
||||||
? distu(mtmp->mx, mtmp->my)
|
? distu(mtmp->mx, mtmp->my)
|
||||||
: dist2(bugler->mx, bugler->my, mtmp->mx,
|
: dist2(bugler->mx, bugler->my, mtmp->mx,
|
||||||
|
|||||||
+1
-1
@@ -367,7 +367,7 @@ VA_DECL(const char *, line)
|
|||||||
else if (Unaware)
|
else if (Unaware)
|
||||||
YouPrefix(tmp, "You dream that you hear ", line);
|
YouPrefix(tmp, "You dream that you hear ", line);
|
||||||
else
|
else
|
||||||
YouPrefix(tmp, "You hear ", line);
|
YouPrefix(tmp, "You hear ", line); /* Deaf-aware */
|
||||||
vpline(strcat(tmp, line), VA_ARGS);
|
vpline(strcat(tmp, line), VA_ARGS);
|
||||||
VA_END();
|
VA_END();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2990,7 +2990,7 @@ boolean peaceful, silent;
|
|||||||
Norep("%s booms: \"%s, you are a thief!\"",
|
Norep("%s booms: \"%s, you are a thief!\"",
|
||||||
Shknam(shkp), plname);
|
Shknam(shkp), plname);
|
||||||
} else if (!Deaf) {
|
} else if (!Deaf) {
|
||||||
Norep("You hear a scream, \"Thief!\"");
|
Norep("You hear a scream, \"Thief!\""); /* Deaf-aware */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
hot_pursuit(shkp);
|
hot_pursuit(shkp);
|
||||||
|
|||||||
+2
-1
@@ -2637,7 +2637,8 @@ register struct monst *mtmp;
|
|||||||
a_your[trap->madeby_u]);
|
a_your[trap->madeby_u]);
|
||||||
}
|
}
|
||||||
if (!in_sight && !Deaf)
|
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);
|
blow_up_landmine(trap);
|
||||||
/* explosion might have destroyed a drawbridge; don't
|
/* explosion might have destroyed a drawbridge; don't
|
||||||
dish out more damage if monster is already dead */
|
dish out more damage if monster is already dead */
|
||||||
|
|||||||
@@ -4442,7 +4442,7 @@ short exploding_wand_typ;
|
|||||||
melt_ice(x, y, (char *) 0);
|
melt_ice(x, y, (char *) 0);
|
||||||
} else if (is_pool(x, y)) {
|
} else if (is_pool(x, y)) {
|
||||||
const char *msgtxt = (!Deaf)
|
const char *msgtxt = (!Deaf)
|
||||||
? "You hear hissing gas."
|
? "You hear hissing gas." /* Deaf-aware */
|
||||||
: "That seemed remarkably uneventful.";
|
: "That seemed remarkably uneventful.";
|
||||||
|
|
||||||
if (lev->typ != POOL) { /* MOAT or DRAWBRIDGE_UP */
|
if (lev->typ != POOL) { /* MOAT or DRAWBRIDGE_UP */
|
||||||
|
|||||||
Reference in New Issue
Block a user