summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-15 15:35:28 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-15 15:49:46 +0100
commitba0dc9345572f0120a622a15eb1c4ef461110b65 (patch)
tree022a199dbe803919bb4bed808062ddad2a4322fc /crawl-ref/source/player.cc
parentded9e45204db0430fe6f5b3c60c73ddc458fe54e (diff)
downloadcrawl-ref-ba0dc9345572f0120a622a15eb1c4ef461110b65.tar.gz
crawl-ref-ba0dc9345572f0120a622a15eb1c4ef461110b65.zip
Remove code duplication by making artifacts use SPARM_SPIRIT_SHIELD.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index cfe022232d..7975d102f0 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3847,8 +3847,7 @@ int player_mental_clarity(bool calc_unid, bool items)
int player_spirit_shield(bool calc_unid)
{
return player_equip(EQ_AMULET, AMU_GUARDIAN_SPIRIT, calc_unid)
- + player_equip_ego_type(EQ_HELMET, SPARM_SPIRIT_SHIELD)
- + scan_artefacts(ARTP_SPIRIT_SHIELD);
+ + player_equip_ego_type(EQ_HELMET, SPARM_SPIRIT_SHIELD);
}
// Returns whether the player has the effect of the amulet from a