diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2009-12-09 21:31:02 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2009-12-09 21:31:02 +0100 |
commit | b8f3c183df87ee55833ab561fa12ed324da5a913 (patch) | |
tree | 2be4120a6fc0053dc049ba066e68b1ebfe701a01 /crawl-ref/source/notes.cc | |
parent | f4efe0a7c1422dede865ea5f9d8e2d96978b2f9f (diff) | |
download | crawl-ref-b8f3c183df87ee55833ab561fa12ed324da5a913.tar.gz crawl-ref-b8f3c183df87ee55833ab561fa12ed324da5a913.zip |
Make Xom sometimes (< 5% chance) revive the player after death.
The chance of this happening depends strongly on tension and mood, as well
as type of death. I also tried the normal protection from harm but I figure
it's more interesting this way. :D
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r-- | crawl-ref/source/notes.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc index dd3db2b2c8..86808ab553 100644 --- a/crawl-ref/source/notes.cc +++ b/crawl-ref/source/notes.cc @@ -123,6 +123,7 @@ static bool _is_noteworthy( const Note& note ) || note.type == NOTE_PENANCE || note.type == NOTE_MOLLIFY_GOD || note.type == NOTE_DEATH + || note.type == NOTE_XOM_REVIVAL || note.type == NOTE_SEEN_FEAT) { return (true); @@ -270,6 +271,9 @@ std::string Note::describe( bool when, bool where, bool what ) const result << "HP: " << first << "/" << second << " [" << name << "]"; break; + case NOTE_XOM_REVIVAL: + result << "Xom revived you"; + break; case NOTE_MP_CHANGE: result << "Mana: " << first << "/" << second; break; |