diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-17 17:37:24 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-17 17:37:24 +0000 |
commit | da621d89cd3418e99b40a2ee5b326065852bea8f (patch) | |
tree | 2473e58425c5822a2e0e802fd3631f424510b30d /crawl-ref/source/itemprop.cc | |
parent | 4e1dc59551a094205041dacc5ba16edca25266d3 (diff) | |
download | crawl-ref-da621d89cd3418e99b40a2ee5b326065852bea8f.tar.gz crawl-ref-da621d89cd3418e99b40a2ee5b326065852bea8f.zip |
Clean up TSO's weapon blessing again.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4306 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index d5a177b8f7..09d109110e 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -1624,30 +1624,6 @@ bool is_demonic( const item_def &item ) return (false); } // end is_demonic() -bool is_unblessed( const item_def &item ) -{ - if (item.base_type == OBJ_WEAPONS) - { - switch (item.sub_type) - { - case WPN_FALCHION: - case WPN_LONG_SWORD: - case WPN_SCIMITAR: - case WPN_KATANA: - case WPN_DEMON_BLADE: - case WPN_DOUBLE_SWORD: - case WPN_GREAT_SWORD: - case WPN_TRIPLE_SWORD: - return (true); - - default: - break; - } - } - - return (false); -} // end is_unblessed() - bool is_blessed( const item_def &item ) { if (item.base_type == OBJ_WEAPONS) @@ -1674,7 +1650,10 @@ bool is_blessed( const item_def &item ) bool is_blessable( const item_def &item ) { - return ((is_unblessed(item) || is_blessed(item)) && !is_artefact(item)); + return (!is_artefact(item) + && (item.base_type == OBJ_WEAPONS + && (is_demonic(item) + || weapon_skill(item) == SK_LONG_BLADES))); } // end is_blessable() bool normal2good( item_def &item, bool allow_blessed ) |