From 1a6236d61bcee1288e94595c4217920b339445b4 Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 7 Jan 2007 22:00:13 +0000 Subject: Implemented some of David's ideas: Improved the help browser somewhat and added some hotkeys. The 'm' screen now lets you see your aptitudes with '!' (if you're allowed to know them, that is.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@798 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/skills2.cc | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/skills2.cc') diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc index 42f42a1f85..0ae4458987 100644 --- a/crawl-ref/source/skills2.cc +++ b/crawl-ref/source/skills2.cc @@ -1820,6 +1820,7 @@ void show_skills(void) int i; int x; menu_letter lcount; + bool show_aptitudes = false; const int num_lines = get_number_of_lines(); @@ -1919,10 +1920,17 @@ void show_skills(void) if ( percent_done == 0 ) ++percent_done; - if ( !Options.increasing_skill_progress ) - cprintf( " (%d)", (100 - percent_done) / 10 ); + if ( !show_aptitudes ) + { + if ( !Options.increasing_skill_progress ) + cprintf( " (%d)", (100 - percent_done) / 10 ); + else + cprintf( " (%2d%%)", (percent_done / 5) * 5 ); + } else - cprintf( " (%2d%%)", (percent_done / 5) * 5 ); + { + cprintf(" %3d ", spec_abil); + } } scrln++; @@ -1930,10 +1938,16 @@ void show_skills(void) } // if any more skills added, must adapt letters to go into caps - gotoxy(1, bottom_line); + gotoxy(1, bottom_line-1); textcolor(LIGHTGREY); cprintf("Press the letter of a skill to choose whether you want to practise it."); + if (!player_genus(GENPC_DRACONIAN) || you.max_level >= 7) + { + gotoxy(1, bottom_line); + cprintf("Press '!' to toggle between aptitude and progress display."); + } + char get_thing; get_thing = getch(); @@ -1942,6 +1956,12 @@ void show_skills(void) getch(); else { + if (get_thing == '!' && (!player_genus(GENPC_DRACONIAN) || + you.max_level >= 7)) + { + show_aptitudes = !show_aptitudes; + goto reprint_stuff; + } if ((get_thing >= 'a' && get_thing <= 'z') || (get_thing >= 'A' && get_thing <= 'Z')) { -- cgit v1.2.3-54-g00ecf