summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills2.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-07 22:00:13 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-07 22:00:13 +0000
commit1a6236d61bcee1288e94595c4217920b339445b4 (patch)
treed8f3c6b9c639f098f73cbf5a8eacc81a16a3fe84 /crawl-ref/source/skills2.cc
parent84e73a2e1530424121ee0f54b58aa44657aaef30 (diff)
downloadcrawl-ref-1a6236d61bcee1288e94595c4217920b339445b4.tar.gz
crawl-ref-1a6236d61bcee1288e94595c4217920b339445b4.zip
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
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r--crawl-ref/source/skills2.cc28
1 files changed, 24 insertions, 4 deletions
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'))
{