summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-10 21:25:11 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-10 21:25:11 +0000
commit9020068a7cd2e62822fb32a2d54b60fe3ec27b35 (patch)
treefad885868a790e4f1371f21f204b35b6d3ba6e0d /crawl-ref/source/describe.cc
parent1e79812dc4bcc00f7a00164300ff19f38abc0cc9 (diff)
downloadcrawl-ref-9020068a7cd2e62822fb32a2d54b60fe3ec27b35.tar.gz
crawl-ref-9020068a7cd2e62822fb32a2d54b60fe3ec27b35.zip
Helmets, helms, caps and wizard hats now have their own subtypes, as
opposed to the old model where they had subtype ARM_HELMET. Breaks savefiles, might be buggy. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3035 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc28
1 files changed, 6 insertions, 22 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 2013187ce3..fbc3be1a77 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -1423,33 +1423,17 @@ static std::string describe_armour( const item_def &item, bool verbose )
description.reserve(200);
- if (verbose
- && item.sub_type != ARM_SHIELD
- && item.sub_type != ARM_BUCKLER
- && item.sub_type != ARM_LARGE_SHIELD)
+ if (verbose
+ && item.sub_type != ARM_SHIELD
+ && item.sub_type != ARM_BUCKLER
+ && item.sub_type != ARM_LARGE_SHIELD)
{
description += "$Armour rating: ";
-
- if (item.sub_type == ARM_HELMET
- && (get_helmet_type( item ) == THELM_CAP
- || get_helmet_type( item ) == THELM_WIZARD_HAT))
- {
- // caps and wizard hats don't have a base AC
- append_value(description, 0, false);
- }
- else if (item.sub_type == ARM_NAGA_BARDING
- || item.sub_type == ARM_CENTAUR_BARDING)
- {
- // Barding has AC value 4.
- append_value(description, 4, false);
- }
- else
- {
- append_value(description, property( item, PARM_AC ), false);
- }
+ append_value(description, property( item, PARM_AC ), false);
description += "$Evasion modifier: ";
append_value(description, property( item, PARM_EVASION ), true);
+
description += "$";
}