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:
Pasi Kallinen
2015-05-27 12:46:31 +03:00
parent a65c568e49
commit 5fabcdf692
7 changed files with 10 additions and 1 deletions

View File

@@ -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

View File

@@ -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