filtering out all other effects. There should be a better way to do this eventually…
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4437 c06c8d41-db1a-0410-9941-cceddc491573
LIJNTMPLOFISTS274CABJJ4H55P2J277CKJAPR5NABT646J2GU2AC if (is_blessed(item)) // remove negative effects on blessed weapons{if (randart_wpn_property( item, RAP_AC ) < 0|| randart_wpn_property( item, RAP_EVASION ) < 0|| randart_wpn_property( item, RAP_STRENGTH ) < 0|| randart_wpn_property( item, RAP_INTELLIGENCE ) < 0|| randart_wpn_property( item, RAP_DEXTERITY ) < 0|| randart_wpn_property( item, RAP_FIRE ) < 0|| randart_wpn_property( item, RAP_COLD ) < 0|| randart_wpn_property( item, RAP_NOISES )|| randart_wpn_property( item, RAP_PREVENT_SPELLCASTING )|| randart_wpn_property( item, RAP_CAUSE_TELEPORTATION )|| randart_wpn_property( item, RAP_PREVENT_TELEPORTATION )|| randart_wpn_property( item, RAP_ANGRY )|| randart_wpn_property( item, RAP_METABOLISM )|| randart_wpn_property( item, RAP_MUTAGENIC )|| randart_wpn_property( item, RAP_ACCURACY ) < 0|| randart_wpn_property( item, RAP_DAMAGE ) < 0){return (false);}}
// XXX: There should be a better way to do this!// Remove all other effects on blessed weapons, so that they// only have the holy wrath brand.if (is_blessed(item) && randart_wpn_num_props(item) > 1)return (false);