Changeset 264

Show
Ignore:
Timestamp:
07/04/07 12:01:12 (1 year ago)
Author:
ajps
Message:

Make movement keys work in stores. Improve roguelike keyset support in stores. Move 'options' location in the command menu. Closes #170.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/cmd0.c

    r248 r264  
    122122        { "Identify symbol",              '/', do_cmd_query_symbol }, 
    123123        { "Character description",        'C', do_cmd_change_name }, 
    124         { "Interact with options",        '=', do_cmd_xxx_options }, 
    125         { "Port-specific preferences",    '!', do_cmd_port }, 
    126124        { "Check knowledge",              '~', do_cmd_knowledge }, 
    127125        { "Repeat level feeling",   KTRL('F'), do_cmd_feeling }, 
     
    133131static command_type cmd_util[] = 
    134132{ 
     133        { "Interact with options",        '=', do_cmd_xxx_options }, 
     134        { "Port-specific preferences",    '!', do_cmd_port }, 
     135 
    135136        { "Save and don't quit",  KTRL('S'), do_cmd_save_game }, 
    136137        { "Save and quit",        KTRL('X'), do_cmd_quit }, 
  • trunk/src/store.c

    r254 r264  
    23932393 
    23942394                /* Take off equipment */ 
     2395                case 'T': 
    23952396                case 't': 
    23962397                { 
     
    24002401 
    24012402                /* Destroy an item */ 
     2403                case KTRL('D'): 
    24022404                case 'k': 
    24032405                { 
     
    24562458 
    24572459                /* Browse a book */ 
     2460                case 'P': 
    24582461                case 'b': 
    24592462                { 
     
    26192622                menu.count = st_ptr->stock_num; 
    26202623 
    2621                 /* These two can't intersect! */ 
    2622                 menu.cmd_keys = "\n\x010\r?=CdeEiIklstwx\x8B\x8C"; /* \x10 = ^p */ 
    2623                 menu.selections = "abcfghjmnopqruvyz1234567890"; 
     2624                /* Roguelike */ 
     2625                if (rogue_like_commands) 
     2626                { 
     2627                        /* These two can't intersect! */ 
     2628                        menu.cmd_keys = "\n\x04\x10\r?=CPdeEiIsTwx\x8B\x8Chl"; /* \x10 = ^p , \x04 = ^D */ 
     2629                        menu.selections = "abcfghmnopqruvyz1234567890"; 
     2630                } 
     2631 
     2632                /* Original */ 
     2633                else 
     2634                { 
     2635                        /* These two can't intersect! */ 
     2636                        menu.cmd_keys = "\n\x010\r?=CbdeEiIklstw\x8B\x8C"; /* \x10 = ^p */ 
     2637                        menu.selections = "acfghmnopqruvxyz13456790"; 
     2638                } 
    26242639 
    26252640                /* Keep the cursor in range of the stock */