From cf748a307df35e7086db9ecc246a509a9312e708 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 27 Mar 2007 06:10:20 +0000 Subject: 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 --- crawl-ref/source/skills2.cc | 7 +++++-- 1 file 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; -- cgit v1.2.3-54-g00ecf