summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player-equip.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-04-25 12:01:02 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-04-25 12:14:10 -0400
commitac418c794ebd79e0bc7713c128aca8336f13094c (patch)
tree3df1a453ddd013e2a1b46c8607309560e85f9651 /crawl-ref/source/player-equip.cc
parenta6c237be8d33b670d2e4c6b4caa074fc3dfe5b73 (diff)
downloadcrawl-ref-ac418c794ebd79e0bc7713c128aca8336f13094c.tar.gz
crawl-ref-ac418c794ebd79e0bc7713c128aca8336f13094c.zip
Cut some message spam from str/dex/int artefact [un-]equip (ChrisOelmueller).
The comments made it clear the only reason for this was statdeath, and 0 stats, while bad, are not bad enough to justify telling the player when he or she has no reason to care.
Diffstat (limited to 'crawl-ref/source/player-equip.cc')
-rw-r--r--crawl-ref/source/player-equip.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/crawl-ref/source/player-equip.cc b/crawl-ref/source/player-equip.cc
index f69d1d50fc..98c1f662c5 100644
--- a/crawl-ref/source/player-equip.cc
+++ b/crawl-ref/source/player-equip.cc
@@ -271,10 +271,12 @@ static void _equip_artefact_effect(item_def &item, bool *show_msgs, bool unmeld)
}
// Modify ability scores.
- // Output result even when identified (because of potential fatality).
- notify_stat_change(STAT_STR, proprt[ARTP_STRENGTH], !msg, item);
- notify_stat_change(STAT_INT, proprt[ARTP_INTELLIGENCE], !msg, item);
- notify_stat_change(STAT_DEX, proprt[ARTP_DEXTERITY], !msg, item);
+ notify_stat_change(STAT_STR, proprt[ARTP_STRENGTH],
+ !(msg && unknown_proprt(ARTP_STRENGTH)), item);
+ notify_stat_change(STAT_INT, proprt[ARTP_INTELLIGENCE],
+ !(msg && unknown_proprt(ARTP_INTELLIGENCE)), item);
+ notify_stat_change(STAT_DEX, proprt[ARTP_DEXTERITY],
+ !(msg && unknown_proprt(ARTP_DEXTERITY)), item);
const artefact_prop_type stat_props[3] =
{ARTP_STRENGTH, ARTP_INTELLIGENCE, ARTP_DEXTERITY};
@@ -388,12 +390,11 @@ static void _unequip_artefact_effect(item_def &item,
: MSG_MANA_INCREASE);
}
- // Modify ability scores; always output messages.
- notify_stat_change(STAT_STR, -proprt[ARTP_STRENGTH], !msg, item,
+ notify_stat_change(STAT_STR, -proprt[ARTP_STRENGTH], false, item,
true);
- notify_stat_change(STAT_INT, -proprt[ARTP_INTELLIGENCE], !msg, item,
+ notify_stat_change(STAT_INT, -proprt[ARTP_INTELLIGENCE], false, item,
true);
- notify_stat_change(STAT_DEX, -proprt[ARTP_DEXTERITY], !msg, item,
+ notify_stat_change(STAT_DEX, -proprt[ARTP_DEXTERITY], false, item,
true);
if (proprt[ARTP_FLY] != 0 && you.cancellable_flight()