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:
@@ -220,7 +220,7 @@ ready_weapon(struct obj *wep)
|
||||
}
|
||||
|
||||
setuwep(wep);
|
||||
if (was_twoweap && !u.twoweap && flags.verbose) {
|
||||
if (was_twoweap && !u.twoweap && Verbose(1, ready_weapon)) {
|
||||
/* skip this message if we already got "empty handed" one above;
|
||||
also, Null is not safe for neither TWOWEAPOK() or bimanual() */
|
||||
if (uwep)
|
||||
@@ -690,7 +690,7 @@ wield_tool(struct obj *obj,
|
||||
return FALSE;
|
||||
}
|
||||
if (welded(uwep)) {
|
||||
if (flags.verbose) {
|
||||
if (Verbose(1, wield_tool)) {
|
||||
const char *hand = body_part(HAND);
|
||||
|
||||
if (bimanual(uwep))
|
||||
|
||||
Reference in New Issue
Block a user