summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-03 13:41:30 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-03 13:41:30 +0000
commit22e5db9d1ec1a8119185f3806387519195497b1c (patch)
tree17b15cfe34c5bf87882721b9e74cd3918378380f /crawl-ref/source/notes.cc
parentf553db7a4eb41ef94962728d8520bb5652a46751 (diff)
downloadcrawl-ref-22e5db9d1ec1a8119185f3806387519195497b1c.tar.gz
crawl-ref-22e5db9d1ec1a8119185f3806387519195497b1c.zip
Implementing patch 1772497 (improvement to runrest.lua by
zelgadis). Also added notes for getting penance, and small fix (patch 1786893 by dolorous). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2047 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index ca74093ad0..6118d7c4e3 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -110,6 +110,7 @@ static bool is_noteworthy( const Note& note )
note.type == NOTE_USER_NOTE ||
note.type == NOTE_MESSAGE ||
note.type == NOTE_LOSE_GOD ||
+ note.type == NOTE_PENANCE ||
note.type == NOTE_MOLLIFY_GOD ||
note.type == NOTE_DEATH )
return true;
@@ -258,6 +259,10 @@ std::string Note::describe( bool when, bool where, bool what ) const
result << "Fell from the grace of "
<< god_name(static_cast<god_type>(first));
break;
+ case NOTE_PENANCE:
+ result << "Was placed under penance by "
+ << god_name(static_cast<god_type>(first));
+ break;
case NOTE_MOLLIFY_GOD:
result << "Was forgiven by "
<< god_name(static_cast<god_type>(first));