From 2ed4f389c28fa47ae5e16d747d0eb81e3a498acf Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 14 Jan 2009 15:31:00 +0000 Subject: * Fix 2477235: Use inscription check when switching back from butchering tool in case it was autoinscribed {!w}. * Make TSO reclaim holy wrath weapons an Elyvilon worshipper is attempting to destroy (flavour only). (FR 2497133) * Disallow Dissolution outside of the Slime Pits. * Explain 'e' as "Drain corpses" for Vampires in the command help. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8450 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/religion.cc | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/religion.cc') diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 5f865a63f4..6c0cae9a37 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -3861,14 +3861,28 @@ bool ely_destroy_weapons() gain_piety(1); } - // Elyvilon doesn't care about item sacrifices at altars, so - // I'm stealing _Sacrifice_Messages. - _print_sacrifice_message(GOD_ELYVILON, item, pgain); - if (is_evil_weapon) + if (get_weapon_brand(item) == SPWPN_HOLY_WRATH) { - // Print this is addition to the above! - simple_god_message(" welcomes the destruction of this evil weapon.", - GOD_ELYVILON); + // Weapons blessed by TSO don't get destroyed but are instead + // returned whence they came. (jpeg) +// _print_sacrifice_message(GOD_SHINING_ONE, item, pgain); + simple_god_message( + make_stringf(" %sreclaims %s.", + pgain == PIETY_SOME ? "gladly " : "", + item.name(DESC_NOCAP_THE).c_str()).c_str(), + GOD_SHINING_ONE); + } + else + { + // Elyvilon doesn't care about item sacrifices at altars, so + // I'm stealing _Sacrifice_Messages. + _print_sacrifice_message(GOD_ELYVILON, item, pgain); + if (is_evil_weapon) + { + // Print this is addition to the above! + simple_god_message(" welcomes the destruction of this evil " + "weapon.", GOD_ELYVILON); + } } destroy_item(si.link()); @@ -4173,8 +4187,10 @@ static bool _zin_retribution() if (success) god_speaks(god, "You feel Zin's eyes turn towards you..."); else + { simple_god_message("'s eyes are elsewhere at the moment.", god); + } } else { -- cgit v1.2.3-54-g00ecf