summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-28 03:40:19 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-28 03:40:19 +0000
commite2537ef139d77e003d45cdb046d5449d455f74af (patch)
treeb7e13630e5b61a8ce2f4bf1456ae2a63a0cba654 /crawl-ref/source/player.cc
parent12d9e94201d839e3043e59e6e82784dbfe7fbfd4 (diff)
downloadcrawl-ref-e2537ef139d77e003d45cdb046d5449d455f74af.tar.gz
crawl-ref-e2537ef139d77e003d45cdb046d5449d455f74af.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10064 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 287d8efdf0..b9c5916f3a 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3125,6 +3125,7 @@ void level_change(bool skip_attribute_increase)
case SP_DEEP_ELF:
if (you.experience_level < 17)
hp_adjust--;
+
if (!(you.experience_level % 3))
hp_adjust--;
@@ -3168,6 +3169,7 @@ void level_change(bool skip_attribute_increase)
MSGCH_INTRINSIC_GAIN);
perma_mutate(MUT_NEGATIVE_ENERGY_RESISTANCE, 1);
}
+
if (!(you.experience_level % 4))
{
modify_stat(coinflip() ? STAT_STRENGTH
@@ -3286,6 +3288,7 @@ void level_change(bool skip_attribute_increase)
case SP_OGRE:
hp_adjust++;
+
if (!(you.experience_level % 3))
modify_stat(STAT_STRENGTH, 1, false, "level gain");
break;
@@ -3318,10 +3321,9 @@ void level_change(bool skip_attribute_increase)
case SP_GREEN_DRACONIAN:
mpr("Your scales start taking on a green colour.",
MSGCH_INTRINSIC_GAIN);
- // green dracos get this at level 7
+ // Green draconians get this at level 7.
perma_mutate(MUT_POISON_RESISTANCE, 1);
break;
-
case SP_YELLOW_DRACONIAN:
mpr("Your scales start taking on a golden yellow colour.",
MSGCH_INTRINSIC_GAIN);
@@ -3399,6 +3401,7 @@ void level_change(bool skip_attribute_increase)
if (!(you.experience_level % 3))
{
hp_adjust++;
+
if (you.experience_level > 7)
hp_adjust++;
}
@@ -3617,8 +3620,8 @@ void level_change(bool skip_attribute_increase)
redraw_skill(you.your_name, player_title());
- // Increase tutorial time-out now that it's actually
- // become useful for a longer time.
+ // Increase tutorial time-out now that it's actually become useful
+ // for a longer time.
if (Options.tutorial_left && you.experience_level >= 7)
tutorial_finished();
}