diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-19 22:16:37 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-19 22:16:37 -0600 |
commit | cbf5fe7b39f4ae734ba7b596b8a1c17264f797ea (patch) | |
tree | 17c93ff67a01bcd68821b71cec081e3a2ced1d37 /crawl-ref/source/item_use.cc | |
parent | 8e6f0b9972661f6e73e809b55274c0cd4e40528b (diff) | |
download | crawl-ref-cbf5fe7b39f4ae734ba7b596b8a1c17264f797ea.tar.gz crawl-ref-cbf5fe7b39f4ae734ba7b596b8a1c17264f797ea.zip |
Properly mark blessed whips as TSO gifts (Scourges instead of Blades).
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 6685bea91b..cef3e363ba 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -158,7 +158,7 @@ bool can_wield(item_def *weapon, bool say_reason, { mpr("This weapon is holy and will not allow you to wield it."); // If it's a standard weapon, you know its ego now. - if (!is_artefact(*weapon) && !is_blessed_blade(*weapon) + if (!is_artefact(*weapon) && !is_blessed(*weapon) && !item_type_known(*weapon)) { set_ident_flags(*weapon, ISFLAG_KNOW_TYPE); @@ -177,7 +177,7 @@ bool can_wield(item_def *weapon, bool say_reason, { mpr("You're too hungry to wield that."); // If it's a standard weapon, you know its ego now. - if (!is_artefact(*weapon) && !is_blessed_blade(*weapon) + if (!is_artefact(*weapon) && !is_blessed(*weapon) && !item_type_known(*weapon)) { set_ident_flags(*weapon, ISFLAG_KNOW_TYPE); |