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:
@@ -1166,7 +1166,7 @@ doorlock(struct obj *otmp, int x, int y)
|
||||
} else {
|
||||
/* for mtmp, mb_trapped() does is own wake_nearto() */
|
||||
loudness = 40;
|
||||
if (flags.verbose) {
|
||||
if (Verbose(1, doorlock1)) {
|
||||
if ((sawit || seeit) && !Unaware)
|
||||
pline("KABOOM!! You see a door explode.");
|
||||
else if (!Deaf)
|
||||
@@ -1182,7 +1182,7 @@ doorlock(struct obj *otmp, int x, int y)
|
||||
unblock_point(x, y);
|
||||
seeit = cansee(x, y);
|
||||
newsym(x, y);
|
||||
if (flags.verbose) {
|
||||
if (Verbose(1, doorlock2)) {
|
||||
if ((sawit || seeit) && !Unaware)
|
||||
pline_The("door crashes open!");
|
||||
else if (!Deaf)
|
||||
|
||||
Reference in New Issue
Block a user