From 9020068a7cd2e62822fb32a2d54b60fe3ec27b35 Mon Sep 17 00:00:00 2001 From: haranp Date: Mon, 10 Dec 2007 21:25:11 +0000 Subject: 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 --- crawl-ref/source/tutorial.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crawl-ref/source/tutorial.cc') diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc index 879c72e06f..a0a0803e63 100644 --- a/crawl-ref/source/tutorial.cc +++ b/crawl-ref/source/tutorial.cc @@ -1693,9 +1693,7 @@ void tutorial_describe_item(const item_def &item) "and innate abilities.)"; wearable = false; } - else if (you.species == SP_MINOTAUR && item.sub_type == ARM_HELMET - && get_helmet_type(item) != THELM_CAP - && get_helmet_type(item) != THELM_WIZARD_HAT) + else if (you.species == SP_MINOTAUR && is_hard_helmet(item)) { ostr << "As a Minotaur you cannot wear helmets. " "(Type A to see a list of your mutations " -- cgit v1.2.3-54-g00ecf