From 4e381e6a083d562fabe8c1d7a2be60720be59238 Mon Sep 17 00:00:00 2001 From: haranp Date: Mon, 23 Feb 2009 13:22:17 +0000 Subject: Add Deep Dwarves patch, with some minor changes. Add a new mutation, MUT_SLOW_HEALING, which at level 3 blocks all healing; it can't be acquired randomly, but deep dwarves start with it at level 3. This overrides regeneration, including the god-given kind (Trog's Hand.) Fix mutation listings (hopefully I got this right.) There are still some cases where DD HP shaving is not applied: ability HP costs, Staff of Dispater effect, vampiric draining backlash, Sublimation of Blood spell. Fix dancing weapons leaving mgrd incorrect if their weapon can't be generated. Breaks saves. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9173 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 9220fb12b5..8a770bafd5 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -3105,14 +3105,18 @@ void handle_time(long time_delta) // Adjust the player's stats if s/he's diseased (or recovering). if (!you.disease) { - if (you.strength < you.max_strength && one_chance_in(100)) - restore_stat(STAT_STRENGTH, 0, false, true); + // With slow healing 3, you have no stat recovery. + if (x_chance_in_y(3 - you.mutation[MUT_SLOW_HEALING], 3)) + { + if (you.strength < you.max_strength && one_chance_in(100)) + restore_stat(STAT_STRENGTH, 0, false, true); - if (you.intel < you.max_intel && one_chance_in(100)) - restore_stat(STAT_INTELLIGENCE, 0, false, true); + if (you.intel < you.max_intel && one_chance_in(100)) + restore_stat(STAT_INTELLIGENCE, 0, false, true); - if (you.dex < you.max_dex && one_chance_in(100)) - restore_stat(STAT_DEXTERITY, 0, false, true); + if (you.dex < you.max_dex && one_chance_in(100)) + restore_stat(STAT_DEXTERITY, 0, false, true); + } } else { -- cgit v1.2.3-54-g00ecf