From 4199cb903775df050465148d7ade49daf09fac39 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 23 Mar 2008 21:46:25 +0000 Subject: Add a weapon enchantment blessing that will enchant a monster's weapon by two points (either this or armor enchantment blessing can occur, with 5% rarity). Whether to-hit or to-damage is chosen is random. Split handling of weapon enchantment into enchant_weapon() for the generic item routines, and handle_enchant_weapon() for the player-specific routines. Furthermore, make enchant_weapon() and enchant_armour() more similar in terms of structure. Also, in bless_follower(), store the blessing description and monster name in std::strings instead of const char*'s. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3839 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crawl-ref/source/item_use.h') diff --git a/crawl-ref/source/item_use.h b/crawl-ref/source/item_use.h index 1c79a93ecc..997f84b741 100644 --- a/crawl-ref/source/item_use.h +++ b/crawl-ref/source/item_use.h @@ -160,8 +160,7 @@ void use_randart(item_def &item); bool puton_item(int slot, bool prompt_finger = true); -bool enchant_weapon( enchant_stat_type which_stat, bool quiet = false, - int wpn = -1 ); +bool enchant_weapon( enchant_stat_type which_stat, bool quiet, item_def &wpn ); bool enchant_armour( int &ac_change, bool quiet, item_def &arm ); bool throw_it(bolt &pbolt, int throw_2, bool teleport=false, int acc_bonus=0, -- cgit v1.2.3-54-g00ecf