diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-08-25 20:47:27 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-08-25 20:47:27 +0000 |
commit | 5c7d640f2cadbf0048d9c5c81e427e3ce1d5af0f (patch) | |
tree | 93a5c82c996abe9264fd56d00750bedec10ac367 /crawl-ref/source/command.cc | |
parent | cb76f80426af8941a42b7346aacba92529e41338 (diff) | |
download | crawl-ref-5c7d640f2cadbf0048d9c5c81e427e3ce1d5af0f.tar.gz crawl-ref-5c7d640f2cadbf0048d9c5c81e427e3ce1d5af0f.zip |
A few minor changes.
Bugfixes:
- vampire bats couldn't untransform
- / of polymorph other do not autoID if you zap at yourself
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2032 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r-- | crawl-ref/source/command.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index 447b740ee2..ac2bdecbdb 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -34,6 +34,7 @@ #include "libutil.h" #include "menu.h" #include "ouch.h" +#include "player.h" #include "spl-cast.h" #include "spl-util.h" #include "stuff.h" @@ -373,6 +374,21 @@ void list_armour() if (armour_id != -1) estr << you.inv[armour_id].name(DESC_INVENTORY); + + if (!you_can_wear(i)) + { + if (i == EQ_BODY_ARMOUR || i == EQ_HELMET) + { + if (!you_tran_can_wear(i)) + estr << " (currently unavailable)"; + else + estr << " (ill-fitting)"; + } + else + estr << " (unavailable)"; + } + else if (!you_tran_can_wear(i)) + estr << " (currently unavailable)"; else estr << " none"; @@ -399,6 +415,8 @@ void list_jewellery(void) if (jewellery_id != -1) jstr << you.inv[jewellery_id].name(DESC_INVENTORY); + else if (!you_tran_can_wear(i)) + jstr << " (currently unavailable)"; else jstr << " none"; @@ -424,6 +442,8 @@ void list_weapons(void) { if (you.attribute[ATTR_TRANSFORMATION] == TRAN_BLADE_HANDS) wstring += " blade hands"; + else if (!you_tran_can_wear(EQ_WEAPON)) + wstring += " (currently unavailable)"; else wstring += " empty hands"; } @@ -445,6 +465,8 @@ void list_weapons(void) if (is_valid_item( you.inv[i] )) wstring += you.inv[i].name(DESC_INVENTORY_EQUIP); + else if (!you_tran_can_wear(EQ_WEAPON)) + wstring += " (currently unavailable)"; else wstring += " none"; |