Permalink
Browse files

Show BUC v1.0

Adds an option to always show uncursed-status.

For some items, when you have identified it, NetHack doesn't
show the item's BUC-state, if it is uncursed. This patch adds
a configuration option "showbuc", which you can set so NetHack
never omits the BUC-status.

Signed-off-by: Pasi Kallinen <paxed@alt.org>
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
  • Loading branch information...
1 parent ef7e4c4 commit bad910ac70fd24f8eb8ff87c5cfcd748e401098e @tycho committed Apr 21, 2009
Showing with 3 additions and 1 deletion.
  1. +1 −0 include/flag.h
  2. +1 −1 src/objnam.c
  3. +1 −0 src/options.c
View
@@ -288,6 +288,7 @@ struct instance_flags {
int wc2_petattr; /* points to text attributes for pet */
boolean wc2_guicolor; /* allow colors in GUI (outside map) */
+ boolean show_buc; /* always show BUC status */
boolean cmdassist; /* provide detailed assistance for some commands */
boolean obsolete; /* obsolete options can point at this, it isn't used */
/* Items which belong in flags, but are here to allow save compatibility */
View
@@ -600,7 +600,7 @@ register struct obj *obj;
Strcat(prefix, "cursed ");
else if (obj->blessed)
Strcat(prefix, "blessed ");
- else if ((!obj->known || !objects[obj->otyp].oc_charged ||
+ else if (iflags.show_buc || (!obj->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
@@ -201,6 +201,7 @@ static struct Bool_Opt
#else
{"showexp", (boolean *)0, FALSE, SET_IN_FILE},
#endif
+ {"showbuc", &iflags.show_buc, FALSE, SET_IN_GAME},
{"showrace", &iflags.showrace, FALSE, SET_IN_GAME},
#ifdef SCORE_ON_BOTL
{"showscore", &flags.showscore, FALSE, SET_IN_GAME},

0 comments on commit bad910a

Please sign in to comment.