From 1395f15a3e6ee7e9b934da41b694c9beef71abda Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 6 Aug 2008 14:23:46 +0000 Subject: * Note items bought in shops along with their price * Note donations made to Zin * Add option autoinscribe_randarts that, if true, autoinscribes artefacts of its own whenever some new properties become known, be it by using it or identifying. Also applies to shops. This is still unfinished and buggy. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6785 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/religion.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/religion.cc') diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 807c31bf37..cb6c0ce683 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -4547,7 +4547,7 @@ static bool _beogh_followers_abandon_you() if (is_orcish_follower(monster)) { num_followers++; - + if (mons_player_visible(monster) && !mons_is_sleeping(monster) && !mons_is_confused(monster) @@ -5271,6 +5271,9 @@ void offer_items() mprf(MSGCH_DIAGNOSTICS, "A donation of $%d amounts to an " "increase of piety by %d.", you.gold, donation_value); #endif + // Take a note of the donation. + take_note(Note(NOTE_DONATE_MONEY, you.gold)); + you.gold = 0; you.redraw_gold = true; @@ -5664,7 +5667,7 @@ harm_protection_type god_protects_from_harm(god_type god, bool actual) void god_smites_you(god_type god, const char *message, kill_method_type death_type) - + { ASSERT(god != GOD_NO_GOD); -- cgit v1.2.3-54-g00ecf