(OK, so it could be considered a feature.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6353 c06c8d41-db1a-0410-9941-cceddc491573
O3CIBMODMCCRFG6XWCUSMMMFKVZHQ7GO6YJVLMC7I4KBZSWNQCVAC
Q3DNEB5OOJ34P5ML4CMK3L6SCP7RLW7DDOZEG24KZBX3C7BJRQDAC
DTO3EUKWHZ5RJNGNCFYXSOVTIPVXPP637F2W7WFGYKJ7JK7VNKNQC
// Don't overenchant items. FIXME: should use some kind of // max_enchantment() function here. if ( (item.sub_type >= ARM_CLOAK && item.sub_type <= ARM_BOOTS) || is_shield(item) ) { if ( item.plus > 2 ) item.plus = 2; }
// Don't overenchant items. FIXME: should use some kind of
// max_enchantment() function here.
if ( (item.sub_type >= ARM_CLOAK && item.sub_type <= ARM_BOOTS)
|| is_shield(item) )
{
if ( item.plus > 2 )
item.plus = 2;
}