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/hiscores.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/hiscores.cc')
-rw-r--r-- | crawl-ref/source/hiscores.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc index 24ca1a90cb..80da72274b 100644 --- a/crawl-ref/source/hiscores.cc +++ b/crawl-ref/source/hiscores.cc @@ -1194,7 +1194,9 @@ std::string scorefile_entry::death_source_desc() const { if (death_type != KILLED_BY_MONSTER && death_type != KILLED_BY_BEAM && death_type != KILLED_BY_DISINT) + { return (""); + } // XXX no longer handles mons_num correctly! FIXME return (!death_source_name.empty() ? |