From bc721ca0cd58a2ffed55245d300266962cf3c123 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 12 Apr 2009 09:49:39 +0000 Subject: * Fix compilation. * Fix wording of stair slide chaos effect. * Add new stimulation triggers for Xom (monsters being polymorphed, accidentally hasted/healed, or going berserk) which has the side effect of keeping Xom's interest up if you actually use the chaos branded weapon he gifted you. * Greatly reduce stimulation possible from deliberately quaffing bad potions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9596 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/beam.cc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/beam.cc') diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index dae307097d..22f2ca83b4 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -3975,7 +3975,18 @@ void bolt::update_hurt_or_helped(monsters *mon) if (nasty_to(mon)) foe_info.hurt++; else if (nice_to(mon)) + { foe_info.helped++; + // Accidentally helped a foe. + if (!is_tracer && !effect_known) + { + int interest = 128; + if (flavour == BEAM_INVISIBILITY && can_see_invis) + interest = 32; + + xom_is_stimulated(interest); + } + } } else { @@ -4586,8 +4597,8 @@ bool bolt::has_saving_throw() const case BEAM_HEALING: case BEAM_INVISIBILITY: case BEAM_DISPEL_UNDEAD: - case BEAM_ENSLAVE_SOUL: // it has a different saving throw - case BEAM_ENSLAVE_DEMON: // it has a different saving throw + case BEAM_ENSLAVE_SOUL: // has a different saving throw + case BEAM_ENSLAVE_DEMON: // ditto rc = false; break; default: -- cgit v1.2.3-54-g00ecf