git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2706 c06c8d41-db1a-0410-9941-cceddc491573
PWK6QQ3KTMRK3XJSUPW2MEKLLLGVD77XSKH525KUECLF6GC6CK4QC // the first query {dlb}:mpr("Which direction ('<' for up, '>' for down, 'x' to quit)?", MSGCH_PROMPT);
// be evil if you've got the Orbmpr("An empty arch forms before you, then disappears.");return 1;}mpr("Which direction ('<' for up, '>' for down, 'x' to quit)?",MSGCH_PROMPT);
if (keyi == '<'){if (you.your_level == 0)mpr("You can't go any further upwards with this spell.");else{dir_sign = -1;break;}}
case '>':if (you.your_level + 1 == your_branch().depth)mpr("You can't go any further downwards with this spell.");elsedir_sign = 1;break;
if (!(keyi < '1' || keyi > '9')){target_level = you.your_level + ((keyi - '0') * dir_sign);break;}}// actual handling begins here {dlb}:if (player_in_branch( BRANCH_MAIN_DUNGEON ))
int amount = 0;while (amount == 0){const int keyin = getch();if ( isdigit(keyin) )amount = (keyin - '0') * dir_sign;else if (keyin == 'x')