summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-inv.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-01-04 22:50:33 -0500
committerNeil Moore <neil@s-z.org>2012-01-05 01:40:23 -0500
commit9b7a088bb276c90a7665074873d26285da804cce (patch)
tree644c0cc5f9bcad0259a675a3d839714593122c07 /crawl-ref/source/tilereg-inv.cc
parent818cbaf561651f70a6f13efcddee3d740dd68f44 (diff)
downloadcrawl-ref-9b7a088bb276c90a7665074873d26285da804cce.tar.gz
crawl-ref-9b7a088bb276c90a7665074873d26285da804cce.zip
Display (studied) for active manuals, treat as equipped.
That's supposed to be short for "being studied"; hopefully it won't lead to confusion. Manuals are also given the "equipped" prefix so they will be highlighted in the inventory; and are drawn with the equipped flag in tiles.
Diffstat (limited to 'crawl-ref/source/tilereg-inv.cc')
-rw-r--r--crawl-ref/source/tilereg-inv.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg-inv.cc b/crawl-ref/source/tilereg-inv.cc
index efb7fb7dce..29286753d5 100644
--- a/crawl-ref/source/tilereg-inv.cc
+++ b/crawl-ref/source/tilereg-inv.cc
@@ -703,6 +703,9 @@ void InventoryRegion::update()
}
}
+ if (item_is_active_manual(you.inv[i]))
+ desc.flag |= TILEI_FLAG_EQUIP;
+
inv_shown[i] = true;
m_items.push_back(desc);
}