diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-27 06:10:20 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-27 06:10:20 +0000 |
commit | cf748a307df35e7086db9ecc246a509a9312e708 (patch) | |
tree | b537c0eec504bb1c0e63bf1267e9c0c2f909ed7a /crawl-ref/source/skills2.cc | |
parent | 4106eaccbac4348b78e33fd1ef3c6c85400f6f53 (diff) | |
download | crawl-ref-cf748a307df35e7086db9ecc246a509a9312e708.tar.gz crawl-ref-cf748a307df35e7086db9ecc246a509a9312e708.zip |
Fix unallocated experience message for when you have only 1 point of free exp.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1105 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r-- | crawl-ref/source/skills2.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc index b325b3a64a..0f6909af65 100644 --- a/crawl-ref/source/skills2.cc +++ b/crawl-ref/source/skills2.cc @@ -1839,8 +1839,11 @@ void show_skills(void) cprintf( "You have %d points of unallocated experience (cost lvl %d; total %d)." EOL EOL, you.exp_available, you.skill_cost_level, you.total_skill_points ); #else - cprintf(" You have %d points of unallocated experience." EOL EOL, - you.exp_available ); + cprintf(" You have %s unallocated experience." EOL EOL, + you.exp_available == 0? "no" : + make_stringf("%d point%s of", + you.exp_available, + you.exp_available == 1? "" : "s").c_str()); #endif char scrln = 3, scrcol = 1; |