diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-23 21:08:10 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-23 21:08:10 +0000 |
commit | 2bcedfdf3c59078e54d15d03b3a9473ed4bdd44b (patch) | |
tree | ba54660d8b3ecaa06b113aa13c9f4c104a9d0fd1 /crawl-ref/source/tilesdl.cc | |
parent | c38a52f9377b9f87e66cdccfeab2abbaa72faad8 (diff) | |
download | crawl-ref-2bcedfdf3c59078e54d15d03b3a9473ed4bdd44b.tar.gz crawl-ref-2bcedfdf3c59078e54d15d03b3a9473ed4bdd44b.zip |
* Allow viewing of card descriptions from Triple Draw and Stack Deck.
* Sort items in 'V' screen according to pickup menu sort order.
* Name Xom's randart book gifts more randomly.
* Colour items seen by 'x' with message colour tags and same for pickup
messages.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9541 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilesdl.cc')
-rw-r--r-- | crawl-ref/source/tilesdl.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc index f253f91f66..335867182d 100644 --- a/crawl-ref/source/tilesdl.cc +++ b/crawl-ref/source/tilesdl.cc @@ -1305,7 +1305,7 @@ static void _fill_item_info(InventoryTile &desc, const item_def &item) || type == OBJ_POTIONS || type == OBJ_MISSILES) { // -1 specifies don't display anything - desc.quantity = item.quantity == 1 ? -1 : item.quantity; + desc.quantity = (item.quantity == 1) ? -1 : item.quantity; } else if (type == OBJ_WANDS && ((item.flags & ISFLAG_KNOW_PLUSES) @@ -1313,6 +1313,8 @@ static void _fill_item_info(InventoryTile &desc, const item_def &item) { desc.quantity = item.plus; } + else if (item_is_rod(item) && item.flags & ISFLAG_KNOW_PLUSES) + desc.quantity = item.plus / ROD_CHARGE_MULT; else desc.quantity = -1; |