git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3153 c06c8d41-db1a-0410-9941-cceddc491573
NPCTY7SLKPF6POZZDNAIJ4RZPWOH6R65APHPZ7IPRGCOR77CSVFAC
Q3DNEB5OOJ34P5ML4CMK3L6SCP7RLW7DDOZEG24KZBX3C7BJRQDAC
DTO3EUKWHZ5RJNGNCFYXSOVTIPVXPP637F2W7WFGYKJ7JK7VNKNQC
SFT2ECCWJJWIMK7V3POVHXECNQIGTIOPA7BEIKHBLWLJMUJ4FFTAC
2QMDACGXJJYBL2CQIXJLNJ65GL3WJMW4ZRE3BTKK4HRWCBLST5UQC
LJK4ZQATLSB4MKZG3ARZX5V6RFGTN3NLCN6GTCUGJQKU26SOXMUAC
KFULGQQOHWUTXOM3BXCCYPGGVGGY4Z6265XUFRCBPNLTZAEHJZSQC
}
// if not given a racial type, and special, give shiny/runed/etc desc.
if (get_equip_desc(item) == ISFLAG_NO_DESC
&& (get_armour_ego_type( item ) != SPARM_NORMAL
|| (item.plus != 0 && !one_chance_in(3))))
{
const item_status_flag_type descs[] = {
ISFLAG_GLOWING, ISFLAG_RUNED, ISFLAG_EMBROIDERED_SHINY
};
set_equip_desc( item, RANDOM_ELEMENT(descs) );
}
// Sets item appearance to match brands, if any.
static void item_set_appearance(item_def &item)
{
if (get_equip_desc(item) != ISFLAG_NO_DESC)
return;
switch (item.base_type)
{
case OBJ_WEAPONS:
if (weapon_is_visibly_special(item))
set_equip_desc( item,
(coinflip() ? ISFLAG_GLOWING : ISFLAG_RUNED) );
break;
case OBJ_ARMOUR:
// if not given a racial type, and special, give shiny/runed/etc desc.
if (get_armour_ego_type( item ) != SPARM_NORMAL
|| (item.plus != 0 && !one_chance_in(3)))
{
const item_status_flag_type descs[] =
{
ISFLAG_GLOWING, ISFLAG_RUNED, ISFLAG_EMBROIDERED_SHINY
};
set_equip_desc( item, RANDOM_ELEMENT(descs) );
}
break;
default:
break;
}