diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2013-05-23 13:20:14 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2013-05-23 13:22:25 -0600 |
commit | daaddd0ef6bee09027348bc5d16de23389ff7a30 (patch) | |
tree | 42e60cb2dd4c89b87434f48c05cb2b3e41fd7833 /crawl-ref/source/godconduct.cc | |
parent | 68e6ee8d9022a74db510756b727402b40379524f (diff) | |
download | crawl-ref-daaddd0ef6bee09027348bc5d16de23389ff7a30.tar.gz crawl-ref-daaddd0ef6bee09027348bc5d16de23389ff7a30.zip |
Unify handling of spellbook destruction for god purposes.
This removes a hiccup wherein Sif followers destroying books would get
double penance; it also means that Trog followers destroying books will
get piety no matter how they destroy the book.
Diffstat (limited to 'crawl-ref/source/godconduct.cc')
-rw-r--r-- | crawl-ref/source/godconduct.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/godconduct.cc b/crawl-ref/source/godconduct.cc index 0cc480e675..e016887d82 100644 --- a/crawl-ref/source/godconduct.cc +++ b/crawl-ref/source/godconduct.cc @@ -975,6 +975,12 @@ bool did_god_conduct(conduct_type thing_done, int level, bool known, penance = level * (known ? 2 : 1); retval = true; } + else if (you.religion == GOD_TROG) + { + simple_god_message(" is delighted!"); + piety_change = 2; // consistent with Burn Spellbooks + retval = true; + } break; case DID_EXPLORATION: |