summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-23 15:43:50 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-23 15:43:50 +0000
commit2431b4ac123fc5cf1f8e85fdf70259e24c0fe381 (patch)
tree30ead4b43709aaafb47962edaf54cc0af3787026 /crawl-ref/source/item_use.cc
parent35dd043cc93f3d34925c007e35685c75f3be5bc9 (diff)
downloadcrawl-ref-2431b4ac123fc5cf1f8e85fdf70259e24c0fe381.tar.gz
crawl-ref-2431b4ac123fc5cf1f8e85fdf70259e24c0fe381.zip
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
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc15
1 files changed, 13 insertions, 2 deletions
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 );