diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-12-27 19:25:32 +0300 |
---|---|---|
committer | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-12-27 19:25:32 +0300 |
commit | dc3e12a4da48363a7cadb77f30b8e784d5f82acf (patch) | |
tree | dadef79197a359e2c24a68a32284b6b6c79eb536 /crawl-ref/source/itemprop.cc | |
parent | 507c3523d54cd2c15185f06f8be1f1ea353497d8 (diff) | |
download | crawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.tar.gz crawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.zip |
Replace uses of item_cursed with item_def::cursed.
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index ee8e022c63..ea2f8bd7b3 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -457,11 +457,6 @@ void init_properties() // // Item cursed status functions: // -bool item_cursed( const item_def &item ) -{ - return (item.flags & ISFLAG_CURSED); -} - bool item_known_cursed( const item_def &item ) { return ((item.flags & ISFLAG_KNOW_CURSE) && (item.flags & ISFLAG_CURSED)); @@ -1195,7 +1190,7 @@ bool is_enchantable_weapon(const item_def &wpn, bool uncurse, bool first) || first && wpn.plus >= MAX_WPN_ENCHANT || !first && wpn.plus2 >= MAX_WPN_ENCHANT) { - return (uncurse && item_cursed(wpn)); + return (uncurse && wpn.cursed()); } } // Highly enchanted missiles, which have only one stat, cannot be @@ -1228,7 +1223,7 @@ bool is_enchantable_armour(const item_def &arm, bool uncurse, bool unknown) // Artefacts or highly enchanted armour cannot be enchanted, only // uncursed. if (is_artefact(arm) || arm.plus >= armour_max_enchant(arm)) - return (uncurse && item_cursed(arm)); + return (uncurse && arm.cursed()); return (true); } |