From b736da84096898e66c6cd777020319d4391b604c Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 25 Jul 2009 16:25:25 +0000 Subject: 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 --- crawl-ref/source/religion.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crawl-ref/source/religion.cc') 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()); -- cgit v1.2.3-54-g00ecf