granular verbose message suppression mechanics

Switch to using a macro invocation Verbos(n, s) in place of the
flags.verbose checks.

Provide the mechanics for individual suppression of any of the
existing messages that were considered verbose.

Mechanics only - this code update does not provide any means of
setting the suppression bits.

iflags.verbose = 0
is still a master suppression of all the verbose messages.

iflags.verbose = 1
turns on the verbose messages only for those whose suppression
bit is 0 (not set).
This commit is contained in:
nhmall
2022-06-09 13:53:20 -04:00
parent fe235b7292
commit be76727265
41 changed files with 312 additions and 137 deletions

View File

@@ -334,7 +334,7 @@ call_kops(register struct monst* shkp, register boolean nearshop)
&& (g.mvitals[PM_KOP_KAPTAIN].mvflags & G_GONE));
if (!angry_guards(!!Deaf) && nokops) {
if (flags.verbose && !Deaf)
if (Verbose(3, call_kops1) && !Deaf)
pline("But no one seems to respond to it.");
return;
}
@@ -350,14 +350,14 @@ call_kops(register struct monst* shkp, register boolean nearshop)
if (nearshop) {
/* Create swarm around you, if you merely "stepped out" */
if (flags.verbose)
if (Verbose(3, call_kops2))
pline_The("Keystone Kops appear!");
mm.x = u.ux;
mm.y = u.uy;
makekops(&mm);
return;
}
if (flags.verbose)
if (Verbose(3, call_kops3))
pline_The("Keystone Kops are after you!");
/* Create swarm near down staircase (hinders return to level) */
if (isok(sx, sy)) {