summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-30 10:44:18 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-30 10:44:18 -0500
commitb57925e63b5899e282c77f94b082fd2d1c0f0a91 (patch)
tree38dc46ddb1c7f11d85223463474c7313fad4f1e5
parentb7077e621c3eb495bc2acc0d66f55f87893c03d7 (diff)
downloadcrawl-ref-b57925e63b5899e282c77f94b082fd2d1c0f0a91.tar.gz
crawl-ref-b57925e63b5899e282c77f94b082fd2d1c0f0a91.zip
After some thought, and considering that animal skins show up less often
now, make them mundane items.
-rw-r--r--crawl-ref/source/itemprop.cc5
-rw-r--r--crawl-ref/source/makeitem.cc5
2 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 9d22deea8f..07ae4fc5ca 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -597,6 +597,11 @@ bool item_is_mundane(const item_def &item)
}
break;
+ case OBJ_ARMOUR:
+ if (item.sub_type == ARM_ANIMAL_SKIN)
+ return (true);
+ break;
+
default:
break;
}
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index 4c1dc649e4..73c3450503 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -2219,11 +2219,10 @@ static void _generate_armour_item(item_def& item, bool allow_uniques,
if (force_good)
hide2armour(item);
- // Skin armours and crystal plate mail normally don't get egos, but
+ // Hide armours and crystal plate mail normally don't get egos, but
// can be randarts.
if (armour_is_hide(item, true)
- || item.sub_type == ARM_CRYSTAL_PLATE_MAIL
- || item.sub_type == ARM_ANIMAL_SKIN)
+ || item.sub_type == ARM_CRYSTAL_PLATE_MAIL)
{
if (!forced_ego)
set_item_ego_type(item, OBJ_ARMOUR, SPARM_NORMAL);