summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-24 16:57:47 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-24 16:57:47 +0000
commitde1e3653a03844e6c19246d9cc8f1bce3a4d98aa (patch)
treeaf53c7210f8e9f3c4c9735fd2e83eb8d18450b22 /crawl-ref/source/tilereg.cc
parent3ccd9f8c08224a0ed4582be77cbf7a6d801f32e9 (diff)
downloadcrawl-ref-de1e3653a03844e6c19246d9cc8f1bce3a4d98aa.tar.gz
crawl-ref-de1e3653a03844e6c19246d9cc8f1bce3a4d98aa.zip
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9194 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r--crawl-ref/source/tilereg.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index 3a6ca80d8e..f370bd2dff 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -391,14 +391,8 @@ void DungeonRegion::pack_player(int x, int y)
int item = you.equip[EQ_GLOVES];
if (item != -1)
result.parts[TILEP_PART_ARM] = tilep_equ_gloves(you.inv[item]);
- else if (player_mutation_level(MUT_CLAWS) >= 3
- || you.species == SP_TROLL || you.species == SP_GHOUL)
- {
- // There is player_has_claws() but it is not equivalent.
- // Claws appear if they're big enough to not wear gloves
- // or on races that have claws.
+ else if (you.has_claws(false) >= 3)
result.parts[TILEP_PART_ARM] = TILEP_ARM_CLAWS;
- }
else
result.parts[TILEP_PART_ARM] = 0;
}