summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorHaran Pilpel <haranp@users.sourceforge.net>2010-01-13 10:01:03 +0200
committerHaran Pilpel <haranp@users.sourceforge.net>2010-01-13 10:01:03 +0200
commitcce3c6e018e1ec88a1b49eaf2fbfde88f51ada01 (patch)
treed075743f82d153e2c17f5da43d5e5fb0dffb1636 /crawl-ref/source/describe.cc
parent253d9973468723045300b5025e2de1e96e350a99 (diff)
downloadcrawl-ref-cce3c6e018e1ec88a1b49eaf2fbfde88f51ada01.tar.gz
crawl-ref-cce3c6e018e1ec88a1b49eaf2fbfde88f51ada01.zip
Various cleanups, use you.weapon() more often, fix a note in README.txt.
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 6d98503ee8..43c23017cf 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -3854,9 +3854,9 @@ std::string get_skill_description(int skill, bool need_title)
unarmed_attacks.push_back("deliver a kick");
}
- if (you.equip[EQ_WEAPON] == -1)
+ if (!you.weapon())
unarmed_attacks.push_back("throw a punch");
- else if (you.equip[EQ_SHIELD] == -1)
+ else if (!you.shield())
unarmed_attacks.push_back("punch with your free hand");
if (!unarmed_attacks.empty())