summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player-stats.cc
diff options
context:
space:
mode:
authorSage <SageBasilMint@gmail.com>2013-12-27 22:46:34 +0000
committerChris Campbell <chriscampbell89@gmail.com>2013-12-29 23:56:20 +0000
commit2c1f11bc7a49ded332b62925fda32016649ee8ba (patch)
tree1f7bb20bc31f670772b568b0b0e6a6b7a0d18447 /crawl-ref/source/player-stats.cc
parentdc6548d80ed8a8746fd19ab250a06c9cf47fcb50 (diff)
downloadcrawl-ref-2c1f11bc7a49ded332b62925fda32016649ee8ba.tar.gz
crawl-ref-2c1f11bc7a49ded332b62925fda32016649ee8ba.zip
Add an indicator and identify sustain abilities on partial protection.
Diffstat (limited to 'crawl-ref/source/player-stats.cc')
-rw-r--r--crawl-ref/source/player-stats.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/player-stats.cc b/crawl-ref/source/player-stats.cc
index 0bf1af07d4..a25ca2fb9a 100644
--- a/crawl-ref/source/player-stats.cc
+++ b/crawl-ref/source/player-stats.cc
@@ -521,7 +521,7 @@ bool lose_stat(stat_type which_stat, int stat_loss, bool force,
int sust = player_sust_abil();
stat_loss >>= sust;
- if (sust && !stat_loss && !player_sust_abil(false))
+ if (sust && !player_sust_abil(false))
{
item_def *ring = get_only_unided_ring();
if (ring && !is_artefact(*ring)
@@ -533,7 +533,8 @@ bool lose_stat(stat_type which_stat, int stat_loss, bool force,
}
mprf(stat_loss > 0 ? MSGCH_WARN : MSGCH_PLAIN,
- "You feel %s%s.",
+ "You feel %s%s%s.",
+ stat_loss > 0 && player_sust_abil(false) ? "somewhat " : "",
stat_desc(which_stat, SD_LOSS),
stat_loss > 0 ? "" : " for a moment");