summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-25 16:25:25 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-25 16:25:25 +0000
commitb736da84096898e66c6cd777020319d4391b604c (patch)
treeac7b0684ea88b1438eb19a7260bc3d4123ee82d0 /crawl-ref/source/religion.cc
parent3cd7d88e4a445431c8ce6f1e8b6c107228649b4e (diff)
downloadcrawl-ref-b736da84096898e66c6cd777020319d4391b604c.tar.gz
crawl-ref-b736da84096898e66c6cd777020319d4391b604c.zip
More milestones and logfile fields for the Crawl tournament.
Add milestones for worshipping and renouncing gods. Record number of kills and all skills at level 27 in the logfile and milestones. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10406 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 0611c336aa..a33b7e12c7 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -38,6 +38,7 @@ REVISION("$Rev$");
#include "fight.h"
#include "files.h"
#include "food.h"
+#include "hiscores.h"
#include "invent.h"
#include "it_use2.h"
#include "itemname.h"
@@ -6316,6 +6317,7 @@ void excommunication(god_type new_god)
{
const god_type old_god = you.religion;
ASSERT(old_god != new_god);
+ ASSERT(old_god != GOD_NO_GOD);
const bool was_haloed = you.haloed();
const int old_piety = you.piety;
@@ -6334,6 +6336,10 @@ void excommunication(god_type new_god)
mpr("You have lost your religion!");
more();
+#ifdef DGL_MILESTONES
+ mark_milestone("god.renounce", "abandoned " + god_name(old_god) + ".");
+#endif
+
if (god_hates_your_god(old_god, new_god))
{
simple_god_message(
@@ -7141,6 +7147,12 @@ void god_pitch(god_type which_god)
#ifdef DGL_WHEREIS
whereis_record();
#endif
+
+#ifdef DGL_MILESTONES
+ mark_milestone("god.worship", "became a worshipper of "
+ + god_name(you.religion) + ".");
+#endif
+
simple_god_message(
make_stringf(" welcomes you%s!",
you.worshipped[which_god] ? " back" : "").c_str());