diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-06-12 13:26:47 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-06-12 13:41:10 -0400 |
commit | e561a6638b9c70b2f3ad265faa83520c7af28226 (patch) | |
tree | eb7e8c675d6119f1f1915ce90d3b26ef922b3973 /crawl-ref/source/player-equip.cc | |
parent | b80c8152ad0ca63863a0ba367b1fede1f4b36504 (diff) | |
download | crawl-ref-e561a6638b9c70b2f3ad265faa83520c7af28226.tar.gz crawl-ref-e561a6638b9c70b2f3ad265faa83520c7af28226.zip |
Allow temporary branding to go over a permanent brand.
Toting around an unbranded weapon just to be able to swap to it
is no fun, and not even that much more of a difficulty; maybe it
just means getting pain out takes 0.7 more turns or so. You still
can't overwrite artefacts, of course.
Diffstat (limited to 'crawl-ref/source/player-equip.cc')
-rw-r--r-- | crawl-ref/source/player-equip.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/player-equip.cc b/crawl-ref/source/player-equip.cc index 15a6e8b805..fa738c12f5 100644 --- a/crawl-ref/source/player-equip.cc +++ b/crawl-ref/source/player-equip.cc @@ -26,6 +26,7 @@ #include "spl-cast.h" #include "spl-miscast.h" #include "spl-summoning.h" +#include "spl-wpnench.h" #include "state.h" #include "stuff.h" #include "transform.h" @@ -757,11 +758,9 @@ static void _unequip_weapon_effect(item_def& item, bool showMsgs, bool meld) if (you.duration[DUR_WEAPON_BRAND]) { - you.duration[DUR_WEAPON_BRAND] = 0; - set_item_ego_type(item, OBJ_WEAPONS, SPWPN_NORMAL); - + end_weapon_brand(); // We're letting this through even if hiding messages. - mpr("Your branding evaporates."); + mpr("Your temporary branding evaporates."); } } } |