spears and staves now have a slightly lower chance of distort, but I will live with that).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@727 c06c8d41-db1a-0410-9941-cceddc491573
KAGDUJFWWZGGIYQECFGRHNSQT47XIUN3ZTSETAIWLYIZ43QXGQ2AC }static bool weapon_is_visibly_special(const item_def &item){const int brand = get_weapon_brand(item);const bool visibly_branded =brand != SPWPN_NORMAL && brand != SPWPN_DISTORTION;return (((is_random_artefact(item) || visibly_branded)&& !one_chance_in(10))|| ((item.plus != 0 || item.plus2 != 0)&& one_chance_in(3)&& brand != SPWPN_DISTORTION))&& item.sub_type != WPN_CLUB&& item.sub_type != WPN_GIANT_CLUB&& item.sub_type != WPN_GIANT_SPIKED_CLUB&& get_equip_desc(item) == 0&& get_equip_race(item) == 0;
if ((((is_random_artefact( mitm[p] )|| get_weapon_brand( mitm[p] ) != SPWPN_NORMAL)&& !one_chance_in(10))|| ((mitm[p].plus != 0 || mitm[p].plus2 != 0)&& one_chance_in(3)))&& mitm[p].sub_type != WPN_CLUB&& mitm[p].sub_type != WPN_GIANT_CLUB&& mitm[p].sub_type != WPN_GIANT_SPIKED_CLUB&& get_equip_desc(mitm[p]) == 0&& get_equip_race(mitm[p]) == 0)
if (weapon_is_visibly_special(mitm[p]))