summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use2.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-08 22:25:29 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-08 22:25:29 +0000
commitfe135a4986670c7b47cd6f386f8853f9f7a74d6b (patch)
tree711cfbe03eff8650649be75c442158d463cfae03 /crawl-ref/source/it_use2.cc
parentcaf161d17b7c515e1de55b1253bf89b48eeb2008 (diff)
downloadcrawl-ref-fe135a4986670c7b47cd6f386f8853f9f7a74d6b.tar.gz
crawl-ref-fe135a4986670c7b47cd6f386f8853f9f7a74d6b.zip
Lanterns of shadows now cut vision radius by 2. This may be too good.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1430 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r--crawl-ref/source/it_use2.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index 460934c5b5..ba6153e452 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -279,6 +279,13 @@ void unwield_item(char unw, bool showMsgs)
you.special_wield = SPWLD_NONE;
you.wield_change = true;
+ if ( you.inv[unw].base_type == OBJ_MISCELLANY &&
+ you.inv[unw].sub_type == MISC_LANTERN_OF_SHADOWS )
+ {
+ you.current_vision += 2;
+ setLOSRadius(you.current_vision);
+ }
+
if (you.inv[unw].base_type == OBJ_WEAPONS)
{
if (is_fixed_artefact( you.inv[unw] ))