summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordploog <dploog@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-31 13:26:05 +0000
committerdploog <dploog@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-31 13:26:05 +0000
commit9ffe5be6e32bd60bec195a768c7eebaca1196a24 (patch)
treef02fafc69790e1165d5e31e1a93a41fba9bdcc2a
parent42b1a978edde92a70f85debfa4b0bdd6d3964fcb (diff)
downloadcrawl-ref-9ffe5be6e32bd60bec195a768c7eebaca1196a24.tar.gz
crawl-ref-9ffe5be6e32bd60bec195a768c7eebaca1196a24.zip
Change level up message (don't mention class anymore). Announce that
level 27 is the last one. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5370 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/ouch.cc2
-rw-r--r--crawl-ref/source/player.cc7
2 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index c5cd54b0cc..f4f4416f0f 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -647,7 +647,7 @@ void lose_level()
you.experience_level--;
mprf(MSGCH_WARN,
- "You are now a level %d %s!", you.experience_level, you.class_name);
+ "You are now level %d!", you.experience_level);
// Constant value to avoid grape jelly trick... see level_change() for
// where these HPs and MPs are given back. -- bwr
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index aa385ae644..bd026800e8 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -2910,8 +2910,11 @@ void level_change(bool skip_attribute_increase)
}
else // character has gained a new level
{
- mprf(MSGCH_INTRINSIC_GAIN, "You are now a level %d %s!",
- you.experience_level, you.class_name );
+ if (you.experience_level == 27)
+ mprf(MSGCH_INTRINSIC_GAIN, "You have reached level 27, the final one!");
+ else
+ mprf(MSGCH_INTRINSIC_GAIN, "You have reached level %d!",
+ you.experience_level );
if (!skip_more)
more();