@@ -609,7 +609,7 @@ struct obj *obj;
609
609
* identification status */
610
610
#define force_material_name (typ ) \
611
611
((typ) == ARMOR || (typ) == STUDDED_ARMOR \
612
- || (typ) == JACKET || (typ) == CLOAK \
612
+ || (typ) == JACKET || (typ) == CLOAK || (typ) == BRACERS \
613
613
|| ((typ) == GLOVES && objects[GLOVES].oc_name_known) \
614
614
|| ((typ) == GAUNTLETS && objects[GAUNTLETS].oc_name_known))
615
615
@@ -762,7 +762,7 @@ unsigned cxn_flags; /* bitmask of CXN_xxx values */
762
762
}
763
763
764
764
if (is_boots (obj )
765
- || typ == DARK_ELVEN_BRACERS
765
+ || is_bracer ( obj )
766
766
|| (is_gloves (obj ) && typ != MUMMIFIED_HAND ))
767
767
Strcat (buf , "pair of " );
768
768
@@ -778,13 +778,13 @@ unsigned cxn_flags; /* bitmask of CXN_xxx values */
778
778
}
779
779
780
780
if (obj -> otyp >= ELVEN_SHIELD && obj -> otyp <= ORCISH_SHIELD
781
- && obj -> otyp != DARK_ELVEN_BRACERS && !dknown ) {
781
+ && ! is_bracer ( obj ) && !dknown ) {
782
782
Strcat (buf , "shield" );
783
783
propnames (buf , obj -> oprops , obj -> oprops_known ,
784
784
FALSE, FALSE);
785
785
break ;
786
786
}
787
- if (obj -> otyp == DARK_ELVEN_BRACERS && !dknown ) {
787
+ if (is_bracer ( obj ) && !dknown ) {
788
788
Strcat (buf , "bracers" );
789
789
propnames (buf , obj -> oprops , obj -> oprops_known ,
790
790
FALSE, FALSE);
@@ -812,6 +812,8 @@ unsigned cxn_flags; /* bitmask of CXN_xxx values */
812
812
Strcat (buf , helm_simple_name (obj ));
813
813
else if (is_shield (obj ))
814
814
Strcat (buf , "shield" );
815
+ else if (is_bracer (obj ))
816
+ Strcat (buf , "bracers" );
815
817
else
816
818
Strcat (buf , "armor" );
817
819
propnames (buf , obj -> oprops , obj -> oprops_known ,
@@ -2612,7 +2614,7 @@ static struct sing_plur one_off[] = {
2612
2614
static const char * const as_is [] = {
2613
2615
/* makesingular() leaves these plural due to how they're used */
2614
2616
"boots" , "shoes" , "gloves" , "lenses" , "scales" ,
2615
- "eyes" , "gauntlets" , "iron bars" , "goggles" ,
2617
+ "eyes" , "gauntlets" , "iron bars" , "goggles" , "bracers" ,
2616
2618
/* both singular and plural are spelled the same */
2617
2619
"bison" , "deer" , "elk" , "fish" , "fowl" ,
2618
2620
"tuna" , "yaki" , "-hai" , "krill" , "manes" ,
@@ -3203,6 +3205,7 @@ STATIC_OVL NEARDATA const struct o_range o_ranges[] = {
3203
3205
{ "candle" , TOOL_CLASS , TALLOW_CANDLE , WAX_CANDLE },
3204
3206
{ "horn" , TOOL_CLASS , TOOLED_HORN , HORN_OF_PLENTY },
3205
3207
{ "shield" , ARMOR_CLASS , SMALL_SHIELD , SHIELD_OF_MOBILITY },
3208
+ { "bracers" , ARMOR_CLASS , BRACERS , DARK_ELVEN_BRACERS },
3206
3209
{ "hat" , ARMOR_CLASS , DUNCE_CAP , FEDORA },
3207
3210
{ "helm" , ARMOR_CLASS , DUNCE_CAP , HELM_OF_TELEPATHY },
3208
3211
{ "gloves" , ARMOR_CLASS , GLOVES , MUMMIFIED_HAND },
@@ -3294,6 +3297,7 @@ static const struct alt_spellings {
3294
3297
{ "drow boots" , DARK_ELVEN_BOOTS },
3295
3298
/* armor */
3296
3299
{ "gloves" , GLOVES },
3300
+ { "bracers" , BRACERS },
3297
3301
{ (const char * ) 0 , 0 },
3298
3302
};
3299
3303
0 commit comments