summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index aa79a289d6..b902943ec8 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -4495,6 +4495,13 @@ int player_mental_clarity(bool calc_unid, bool items)
return ((ret > 3) ? 3 : ret);
}
+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);
+}
+
// Returns whether the player has the effect of the amulet from a
// non-amulet source.
bool extrinsic_amulet_effect(jewellery_type amulet)