Skip to content

Commit

Permalink
Putting new search on 'S' and old search from 1.7.4 on 's'. Save game…
Browse files Browse the repository at this point in the history
… on 'E'
  • Loading branch information
flend committed Sep 29, 2019
1 parent c1993ca commit 03e1e9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Brogue Source/BrogueCode/IO.c
Original file line number Diff line number Diff line change
Expand Up @@ -2444,6 +2444,12 @@ void executeKeystroke(signed long keystroke, boolean controlKey, boolean shiftKe
case SEARCH_KEY:
manualSearch();
break;
case OLD_SEARCH_KEY:
recordKeystroke(OLD_SEARCH_KEY, false, false);
considerCautiousMode();
search(rogue.awarenessBonus < 0 ? 40 : 80);
playerTurnEnded();
break;
case INVENTORY_KEY:
displayInventory(ALL_ITEMS, 0, 0, true, true);
break;
Expand Down
5 changes: 3 additions & 2 deletions Brogue Source/BrogueCode/Rogue.h
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,8 @@ enum tileFlags {
#define ASCEND_KEY '<'
#define REST_KEY 'z'
#define AUTO_REST_KEY 'Z'
#define SEARCH_KEY 's'
#define SEARCH_KEY 'S'
#define OLD_SEARCH_KEY 's'
#define INVENTORY_KEY 'i'
#define ACKNOWLEDGE_KEY ' '
#define EQUIP_KEY 'e'
Expand Down Expand Up @@ -1128,7 +1129,7 @@ enum tileFlags {
#define PERIOD_KEY '.'
#define VIEW_RECORDING_KEY 'V'
#define LOAD_SAVED_GAME_KEY 'O'
#define SAVE_GAME_KEY 'S'
#define SAVE_GAME_KEY 'E'
#define NEW_GAME_KEY 'N'
#define NUMPAD_0 48
#define NUMPAD_1 49
Expand Down

0 comments on commit 03e1e9f

Please sign in to comment.