diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-20 11:53:32 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-20 11:53:32 +0000 |
commit | 3219115e22de903dd8795fc40e101d6c05ab3291 (patch) | |
tree | 998408bc17a1bc94ea8157b19530cc1ce6712c04 /crawl-ref/source/item_use.cc | |
parent | c8057b4430d1a552899846255def3e5d627f2472 (diff) | |
download | crawl-ref-3219115e22de903dd8795fc40e101d6c05ab3291.tar.gz crawl-ref-3219115e22de903dd8795fc40e101d6c05ab3291.zip |
* Change size restrictions for banded, splint, plate and crystal plate
mail to [SIZE_SMALL, SIZE_MEDIUM] like for the other mails.
(Fixes 2695530.)
* There's a 50% chance of Xom being amused about former playthings dying.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9522 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 4e815f5214..77c3fa3d2b 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -873,6 +873,8 @@ bool can_wear_armour(const item_def &item, bool verbose, bool ignore_temporary) can_wear = (you.species == SP_NAGA); else if (sub_type == ARM_CENTAUR_BARDING) can_wear = (you.species == SP_CENTAUR); + else + can_wear = (fit_armour_size(item, player_size()) == 0); if (!can_wear) { |