Skip to content

Commit

Permalink
Make potions of degeneration decrease all stats by 1-3
Browse files Browse the repository at this point in the history
Rather than one stat by 1-4, to make it cause a minor debuff that should be at
least a little noticeable to many early characters.
  • Loading branch information
Chris Campbell committed Feb 5, 2016
1 parent e059afa commit 58ee468
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crawl-ref/source/potion.cc
Expand Up @@ -1190,7 +1190,11 @@ class PotionDegeneration : public PotionEffect
bool effect(bool=true, int=40, bool=true) const override
{
mpr("There was something very wrong with that liquid.");
return lose_stat(STAT_RANDOM, 1 + random2avg(4, 2));
bool success = false;
for (int i = 0; i < NUM_STATS; ++i)
if (lose_stat(static_cast<stat_type>(i), 1 + random2(3)))
success = true;
return success;
}

bool quaff(bool was_known) const override
Expand Down

0 comments on commit 58ee468

Please sign in to comment.