diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-08-30 14:40:48 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-08-30 14:40:48 +0000 |
commit | 2e5c80c5f2690bb4ef929c6c1a6d0c309afe55e5 (patch) | |
tree | 4aa478ab9403ef8fd670ee1ed04d8cf00f88be0b /crawl-ref/source/command.cc | |
parent | 26daf2e137f335a48ae532b3a379cef0550d4e39 (diff) | |
download | crawl-ref-2e5c80c5f2690bb4ef929c6c1a6d0c309afe55e5.tar.gz crawl-ref-2e5c80c5f2690bb4ef929c6c1a6d0c309afe55e5.zip |
Several bugfixes.
In no particular order:
+ Beogh shouldn't care about you attacking non-orc friends.
+ Mummies don't get "Food" listed as ability costs.
+ corrected order of invis flickering
+ modified (and tidied) you_can_wear checks and output
+ added ']' command to list currently worn equipment (inv)
+ wielded cursed items can no longer be fired
+ Wanderers no longer get inappropriate armour
+ Fixed "bad item" message for confirm-inscribed items
+ copied "Discharge" to "Static Discharge" in spells.txt
(Maybe we should remove the first, but I was unsure about
that, so I left it for now.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2035 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r-- | crawl-ref/source/command.cc | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index ac2bdecbdb..61f53d29a5 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -374,21 +374,12 @@ 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_can_wear(i,true)) + estr << " (unavailable)"; else if (!you_tran_can_wear(i)) estr << " (currently unavailable)"; + else if (!you_can_wear(i)) + estr << " (ill-fitting)"; else estr << " none"; @@ -463,10 +454,13 @@ void list_weapons(void) else wstring = "Secondary : "; - if (is_valid_item( you.inv[i] )) + if (is_valid_item( you.inv[i]) && + (you.inv[i].base_type == OBJ_WEAPONS + || you.inv[i].base_type == OBJ_STAVES + || you.inv[i].base_type == OBJ_MISCELLANY)) + { wstring += you.inv[i].name(DESC_INVENTORY_EQUIP); - else if (!you_tran_can_wear(EQ_WEAPON)) - wstring += " (currently unavailable)"; + } else wstring += " none"; |