Add omit_buc -option
The option defaults to on, which is the old-style behaviour. Turning the option off will never omit the "uncursed" -status from inventory lines. This is pretty much required if users want to use menucolors based on the BUC state.
This commit is contained in:
@@ -778,7 +778,7 @@ register struct obj *obj;
|
||||
Strcat(prefix, "cursed ");
|
||||
else if (obj->blessed)
|
||||
Strcat(prefix, "blessed ");
|
||||
else if ((!known || !objects[obj->otyp].oc_charged
|
||||
else if (!iflags.omit_buc || (!known || !objects[obj->otyp].oc_charged
|
||||
|| (obj->oclass == ARMOR_CLASS
|
||||
|| obj->oclass == RING_CLASS))
|
||||
/* For most items with charges or +/-, if you know how many
|
||||
|
||||
@@ -154,6 +154,7 @@ static struct Bool_Opt {
|
||||
#endif
|
||||
{ "nudist", &u.uroleplay.nudist, FALSE, DISP_IN_GAME },
|
||||
{ "null", &flags.null, TRUE, SET_IN_GAME },
|
||||
{ "omit_buc", &iflags.omit_buc, TRUE, SET_IN_GAME },
|
||||
#if defined(SYSFLAGS) && defined(MAC)
|
||||
{ "page_wait", &sysflags.page_wait, TRUE, SET_IN_GAME },
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user