diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-23 21:46:25 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-23 21:46:25 +0000 |
commit | 4199cb903775df050465148d7ade49daf09fac39 (patch) | |
tree | 80945903f518f9711e28c413438e51d9890473d8 /crawl-ref/source/itemprop.h | |
parent | 9e511702e814c94093bb77ae460f8be8b7a49b16 (diff) | |
download | crawl-ref-4199cb903775df050465148d7ade49daf09fac39.tar.gz crawl-ref-4199cb903775df050465148d7ade49daf09fac39.zip |
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
Diffstat (limited to 'crawl-ref/source/itemprop.h')
-rw-r--r-- | crawl-ref/source/itemprop.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.h b/crawl-ref/source/itemprop.h index da16b46a38..8f42cb6a19 100644 --- a/crawl-ref/source/itemprop.h +++ b/crawl-ref/source/itemprop.h @@ -632,6 +632,7 @@ bool check_armour_size( const item_def &item, size_type size ); bool check_armour_shape( const item_def &item, bool quiet ); bool item_is_rechargable(const item_def &it, bool known = false); +bool is_enchantable_weapon(const item_def &wpn, bool uncurse); bool is_enchantable_armour(const item_def &arm, bool uncurse); // weapon functions: |