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/player.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index c8bceea2f8..ba506a7fa7 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -4872,6 +4872,9 @@ void rot_hp( int hp_loss ) you.base_hp -= hp_loss; calc_hp(); + if (you.species != SP_GHOUL) + xom_is_stimulated(hp_loss * 32); + you.redraw_hit_points = true; } @@ -5059,7 +5062,7 @@ int get_real_mp(bool include_items) enp += std::max(spell_extra, invoc_extra); enp = stepdown_value(enp, 9, 18, 45, 100); - // this is our "rotted" base (applied after scaling): + // This is our "rotted" base (applied after scaling): enp += (you.base_magic_points - 5000); // Yes, we really do want this duplication... this is so the stepdown -- cgit v1.2.3-54-g00ecf