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:
@@ -769,7 +769,7 @@ doengrave(void)
|
||||
ptext = TRUE;
|
||||
type = ENGRAVE;
|
||||
if (!objects[otmp->otyp].oc_name_known) {
|
||||
if (flags.verbose)
|
||||
if (Verbose(1, doengrave1))
|
||||
pline("This %s is a wand of digging!", xname(otmp));
|
||||
doknown = TRUE;
|
||||
}
|
||||
@@ -792,7 +792,7 @@ doengrave(void)
|
||||
ptext = TRUE;
|
||||
type = BURN;
|
||||
if (!objects[otmp->otyp].oc_name_known) {
|
||||
if (flags.verbose)
|
||||
if (Verbose(1, doengrave2))
|
||||
pline("This %s is a wand of fire!", xname(otmp));
|
||||
doknown = TRUE;
|
||||
}
|
||||
@@ -803,7 +803,7 @@ doengrave(void)
|
||||
ptext = TRUE;
|
||||
type = BURN;
|
||||
if (!objects[otmp->otyp].oc_name_known) {
|
||||
if (flags.verbose)
|
||||
if (Verbose(1, doengrave3))
|
||||
pline("This %s is a wand of lightning!", xname(otmp));
|
||||
doknown = TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user