diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-10 08:16:22 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-10 08:16:22 +0000 |
commit | 25d3b62862eabdb0a7a680e8a407e5657813df36 (patch) | |
tree | c5b9670e34b656a23935c195ea07b0fbc8a6d6de /crawl-ref/source/religion.cc | |
parent | f1252be0223160b0ea0f6571dd4972b60b76be4b (diff) | |
download | crawl-ref-25d3b62862eabdb0a7a680e8a407e5657813df36.tar.gz crawl-ref-25d3b62862eabdb0a7a680e8a407e5657813df36.zip |
Better message for Trog's ignite spellbooks ability failing. [2579830]
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9022 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 9630502c0f..6340d9f08e 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -4006,7 +4006,7 @@ bool trog_burn_spellbooks() if (!totalpiety) { - mpr("There are no spellbooks in sight to burn!"); + mpr("You cannot see a spellbook to ignite!"); return (false); } else @@ -4025,17 +4025,16 @@ void lose_piety(int pgn) const int old_piety = you.piety; // Apply hysteresis. - { - const int old_hysteresis = you.piety_hysteresis; - you.piety_hysteresis = (unsigned char)std::min<int>( - PIETY_HYSTERESIS_LIMIT, you.piety_hysteresis + pgn); - const int pgn_borrowed = (you.piety_hysteresis - old_hysteresis); - pgn -= pgn_borrowed; + const int old_hysteresis = you.piety_hysteresis; + you.piety_hysteresis = (unsigned char)std::min<int>( + PIETY_HYSTERESIS_LIMIT, you.piety_hysteresis + pgn); + const int pgn_borrowed = (you.piety_hysteresis - old_hysteresis); + pgn -= pgn_borrowed; #if DEBUG_PIETY - mprf(MSGCH_DIAGNOSTICS, "Piety decreasing by %d (and %d added to hysteresis)", pgn, pgn_borrowed); + mprf(MSGCH_DIAGNOSTICS, + "Piety decreasing by %d (and %d added to hysteresis)", + pgn, pgn_borrowed); #endif - } - if (you.piety - pgn < 0) you.piety = 0; @@ -4069,7 +4068,8 @@ void lose_piety(int pgn) else { god_speaks(you.religion, - make_stringf("You can no longer %s.", pmsg).c_str()); + make_stringf("You can no longer %s.", + pmsg).c_str()); } } |