From 2431b4ac123fc5cf1f8e85fdf70259e24c0fe381 Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 23 Jan 2007 15:43:50 +0000 Subject: Fixed Enchant Weapon III message bug. Pain brand can now be fixed (with a side effect of self-torment.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@877 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index f0c0ce1a49..f39bb6a0e2 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2856,6 +2856,18 @@ static bool affix_weapon_enchantment( void ) cast_toxic_radiance(); break; + case SPWPN_PAIN: + strcat(info, " shrieks out in eternal agony!"); + mpr(info); + + torment_monsters(you.x_pos, you.y_pos, 0, TORMENT_GENERIC); + + // is only naughty if you know you're doing it + if (get_ident_type(OBJ_SCROLLS, SCR_ENCHANT_WEAPON_III)==ID_KNOWN_TYPE) + did_god_conduct(DID_UNHOLY, 10); + + break; + case SPWPN_DISTORTION: // [dshaligram] Attempting to fix a distortion brand gets you a free // distortion effect, and no permabranding. Sorry, them's the breaks. @@ -3382,10 +3394,9 @@ void read_scroll(void) case SCR_ENCHANT_WEAPON_III: if (you.equip[ EQ_WEAPON ] != -1) { + in_name( you.equip[EQ_WEAPON], DESC_CAP_YOUR, info ); if (!affix_weapon_enchantment()) { - in_name( you.equip[EQ_WEAPON], DESC_CAP_YOUR, str_pass ); - strcpy( info, str_pass ); strcat( info, " glows bright yellow for a while." ); mpr( info ); -- cgit v1.2.3-54-g00ecf