summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-10-22 12:02:13 +0200
committerAdam Borowski <kilobyte@angband.pl>2009-10-22 12:02:13 +0200
commitd2ccd1e0215c4cee7e4ac915e8596443759678ff (patch)
treebe8359ef4129b5d726aac52b59743f1764d74047 /crawl-ref/source/invent.cc
parent916a89eb14634f428ea16b873377634abfd03df1 (diff)
downloadcrawl-ref-d2ccd1e0215c4cee7e4ac915e8596443759678ff.tar.gz
crawl-ref-d2ccd1e0215c4cee7e4ac915e8596443759678ff.zip
Prevent non-body armour from being made ponderous, it has no effect.
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 2bbd8c9b70..2748df3756 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -461,6 +461,8 @@ static std::string _no_selectables_message(int item_selector)
return("You aren't carrying any items that can be evoked.");
case OSEL_FRUIT:
return("You aren't carrying any fruit.");
+ case OSEL_PONDER_ARM:
+ return("You aren't carrying any armour which can be made ponderous.");
}
return("You aren't carrying any such object.");
@@ -1044,6 +1046,9 @@ static bool _item_class_selected(const item_def &i, int selector)
case OSEL_EVOKABLE:
return (item_is_evokable(i, true, true));
+ case OSEL_PONDER_ARM:
+ if (itype != OBJ_ARMOUR || get_armour_slot(i) != EQ_BODY_ARMOUR)
+ return (false);
case OSEL_ENCH_ARM:
return (is_enchantable_armour(i, true, true));