branding a monster's weapon with holy wrath and promoting an orc to an orc priest fail. TSO can now brand a monster's armor with positive energy, and Beogh can now brand a monster's weapon with electrocution.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4507 c06c8d41-db1a-0410-9941-cceddc491573
SZXBPBYBVBOXD7YL2FSBEMIO6JHQKFA237AVL2OV4E4AH7QKRNZQC if (armour == NON_ITEM && shield == NON_ITEM)return false;int slot;do{slot = (coinflip()) ? armour : shield;}while (slot == NON_ITEM);item_def& arm(mitm[slot]);if (is_artefact(arm) || get_armour_ego_type(arm) == SPARM_POSITIVE_ENERGY)return false;// And make it resistant to negative energy.set_equip_desc(arm, ISFLAG_GLOWING);set_item_ego_type(arm, OBJ_ARMOUR, SPARM_POSITIVE_ENERGY);arm.colour = YELLOW;return true;}
}static bool _beogh_blessing_elec_wpn(monsters *mon){// Pick a monster's weapon.const int weapon = mon->inv[MSLOT_WEAPON];if (weapon == NON_ITEM)return false;item_def& wpn(mitm[weapon]);if (is_artefact(wpn) || get_weapon_brand(wpn) == SPWPN_ELECTROCUTION)return false;// And make it electric.set_equip_desc(wpn, ISFLAG_GLOWING);set_item_ego_type(wpn, OBJ_WEAPONS, SPWPN_ELECTROCUTION);wpn.colour = YELLOW;return true;