diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 19:58:17 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 19:58:17 +0000 |
commit | 016ca20bd263814990ae867cdbc2ca9282e1df10 (patch) | |
tree | b30772579ed949767b6cb73865b308009ce6a790 /crawl-ref/source/randart.cc | |
parent | 8b989e877550fcc89c79e06905a2128537a852f0 (diff) | |
download | crawl-ref-016ca20bd263814990ae867cdbc2ca9282e1df10.tar.gz crawl-ref-016ca20bd263814990ae867cdbc2ca9282e1df10.zip |
Clean up blessed blade handling a bit.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4484 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r-- | crawl-ref/source/randart.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc index fda4b23af6..ac7fe811ba 100644 --- a/crawl-ref/source/randart.cc +++ b/crawl-ref/source/randart.cc @@ -102,12 +102,6 @@ static bool _god_fits_artefact(const god_type which_god, const item_def &item) { return (false); } - - // XXX: There should be a better way to do this! - // Remove all other effects on blessed weapons, so that they - // only have the holy wrath brand. - if (is_blessed(item) && randart_wpn_num_props(item) > 1) - return (false); break; case GOD_LUGONU: // corruption @@ -1259,7 +1253,8 @@ static std::string _get_artefact_type(const int type) static bool _pick_db_name( const item_def &item ) { - if (is_blessed(item)) + // Blessed blades always get database names. + if (is_blessed_blade(item)) return true; switch (item.base_type) |