summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills2.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-23 08:08:01 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-23 08:08:01 +0000
commit00af6cae236018eae3c659ae02cd8c017549bd15 (patch)
treee6b041e674fe98267d138e06bcf67786be05d969 /crawl-ref/source/skills2.cc
parent361fb119f59f5879b115ec1dc050fe84b7381670 (diff)
downloadcrawl-ref-00af6cae236018eae3c659ae02cd8c017549bd15.tar.gz
crawl-ref-00af6cae236018eae3c659ae02cd8c017549bd15.zip
Implemented 1705620: aptitudes are now shown in red, skill progress in blue.
Change this if it's too ugly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1346 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r--crawl-ref/source/skills2.cc20
1 files changed, 11 insertions, 9 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc
index 60041b08d7..948847c26f 100644
--- a/crawl-ref/source/skills2.cc
+++ b/crawl-ref/source/skills2.cc
@@ -1818,7 +1818,7 @@ static const int skill_display_order[] =
static const int ndisplayed_skills =
sizeof(skill_display_order) / sizeof(*skill_display_order);
-void show_skills(void)
+void show_skills()
{
int i;
int x;
@@ -1836,7 +1836,8 @@ void show_skills(void)
textcolor(LIGHTGREY);
#if DEBUG_DIAGNOSTICS
- cprintf( "You have %d points of unallocated experience (cost lvl %d; total %d)." EOL EOL,
+ 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 %s unallocated experience." EOL EOL,
@@ -1846,7 +1847,7 @@ void show_skills(void)
you.exp_available == 1? "" : "s").c_str());
#endif
- char scrln = 3, scrcol = 1;
+ int scrln = 3, scrcol = 1;
// Don't want the help line to appear too far down a big window.
int bottom_line = ((num_lines > 30) ? 30 : num_lines);
@@ -1900,8 +1901,6 @@ void show_skills(void)
(you.practise_skill[x] == 0) ? '-' : '+',
skills[x][0], you.skills[x] );
- textcolor(BLUE);
-
#if DEBUG_DIAGNOSTICS
cprintf( " %5d", you.skill_points[x] );
#endif
@@ -1921,6 +1920,7 @@ void show_skills(void)
if ( !show_aptitudes )
{
+ textcolor(BLUE);
if ( !Options.increasing_skill_progress )
cprintf( " (%d)", (100 - percent_done) / 10 );
else
@@ -1928,6 +1928,7 @@ void show_skills(void)
}
else
{
+ textcolor(RED);
cprintf(" %3d ", spec_abil);
}
}
@@ -1944,12 +1945,13 @@ void show_skills(void)
if (!player_genus(GENPC_DRACONIAN) || you.max_level >= 7)
{
gotoxy(1, bottom_line);
- cprintf("Press '!' to toggle between aptitude and progress display.");
+ formatted_string::parse_string("Press '!' to toggle between "
+ "<blue>progress</blue> and "
+ "<red>aptitude</red> "
+ "display.").display();
}
- char get_thing;
-
- get_thing = getch();
+ int get_thing = getch();
if (get_thing == 0)
getch();