Skip to content

Commit

Permalink
Don't give sickness a chance to cause stat drain
Browse files Browse the repository at this point in the history
Its main purpose is preventing HP regeneration and it's a rare effect, so just
make it do that one thing.
  • Loading branch information
Chris Campbell committed Jul 4, 2016
1 parent 45fb870 commit 4dc29a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
5 changes: 2 additions & 3 deletions crawl-ref/source/dat/descript/status.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,8 @@ without taking damage.
%%%%
Sick status

You have been sickened. Your health will no longer regenerate and your
attributes may be drained temporarily. Sickness can be cured immediately by
potions of curing.
You have been sickened, and your health will no longer regenerate. Sickness can
be cured immediately by potions of curing.
%%%%
Vertigo status

Expand Down
4 changes: 4 additions & 0 deletions crawl-ref/source/enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -5203,9 +5203,13 @@ enum timed_effect_type
{
TIMER_CORPSES,
TIMER_HELL_EFFECTS,
#if TAG_MAJOR_VERSION == 34
TIMER_SICKNESS,
#endif
TIMER_CONTAM,
#if TAG_MAJOR_VERSION == 34
TIMER_DETERIORATION,
#endif
TIMER_GOD_EFFECTS,
#if TAG_MAJOR_VERSION == 34
TIMER_SCREAM,
Expand Down
17 changes: 3 additions & 14 deletions crawl-ref/source/timed_effects.cc
Original file line number Diff line number Diff line change
Expand Up @@ -813,19 +813,6 @@ static void _handle_magic_contamination(int /*time_delta*/)
}
}

// Adjust the player's stats if diseased.
static void _handle_sickness(int /*time_delta*/)
{
// If Cheibriados has slowed your biology, disease might
// not actually do anything.
if (you.disease && one_chance_in(30)
&& !(have_passive(passive_t::slow_metabolism) && coinflip()))
{
mprf(MSGCH_WARN, "Your disease is taking its toll.");
lose_stat(STAT_RANDOM, 1);
}
}

// Exercise armour *xor* stealth skill: {dlb}
static void _wait_practice(int /*time_delta*/)
{
Expand Down Expand Up @@ -957,7 +944,9 @@ static struct timed_effect timed_effects[] =
{
{ rot_floor_items, 200, 200, true },
{ _hell_effects, 200, 600, false },
{ _handle_sickness, 100, 300, false },
#if TAG_MAJOR_VERSION == 34
{ nullptr, 0, 0, false },
#endif
{ _handle_magic_contamination, 200, 600, false },
#if TAG_MAJOR_VERSION == 34
{ nullptr, 0, 0, false },
Expand Down

0 comments on commit 4dc29a1

Please sign in to comment.