added faster menu selection for base game (required)

This commit is contained in:
2024-07-18 22:08:20 -04:00
parent d3f43c33f5
commit a03d444dad
11 changed files with 278 additions and 37 deletions

View File

@ -42,7 +42,9 @@ enum game_command : int {game_command_terminate = 0,
enter, toggle_inventory,
throw_north, throw_south, throw_east, throw_west,
throw_northeast, throw_northwest,
throw_southeast, throw_southwest
throw_southeast, throw_southwest,
select_shade, select_drow, select_vampire,
select_goblin, select_troll
};
// Character generation related
@ -63,17 +65,17 @@ static const char CHAR_REP[RACE_CNT] = {
static const int MAX_HP[RACE_CNT] = {
125, 150, INF, 120, 110, 140, 100, 140, 180, 30, 150, 100,
800, 130, 150, 120, 100,
150, 100, 60, 100, 90, 140
600, 130, 125, 120, 100,
150, 100, 80, 100, 90, 140
};
static const int STARTING_HP[RACE_CNT] = {
125, 150, 50, 120, 110, 140, 100, 140, 180, 30, 150, 100,
800, 130, 100, 120, 100,
150, 100, 60, 100, 90, 140
600, 130, 100, 120, 100,
150, 100, 80, 100, 90, 140
};
static const int STARTING_ATK[RACE_CNT] = {
25, 25, 25, 25, 15, 20, 20, 30, 30, 70, 20, 15,
40, 25, 70, 15, 30,
40, 25, 70, 20, 30,
30, 25, 10, 20, 15, 20
};
static const int STARTING_DEF[RACE_CNT] = {
@ -84,7 +86,7 @@ static const int STARTING_DEF[RACE_CNT] = {
static const fraction STARTING_HR[RACE_CNT] = {
{1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1},
{1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2},
{1, 1}, {1, 1}, {100, 1}, {3, 4}, {1, 1},
{2, 3}, {INF, 1}, {1, 1}, {3, 4}, {1, 1},
{1, 3}, {1, 1}, {1, 2}, {1, 2}, {1, 2}, {1, 3}
};
@ -146,6 +148,10 @@ static const feature FEATURE_EXTRA_STUFF = 1 << 10;
static const feature FEATURE_EXTRA_LEVELS = 1 << 11;
static const feature FEATURE_DOORS = 1 << 12;
static const feature FEATURE_LIST_COMMANDS = 1 << 23;
static const feature FEATURE_LIST_RACES = 1 << 24;
static const feature FEATURE_LIST_ENEMIES = 1 << 25;
static const feature FEATURE_LIST_POTIONS = 1 << 26;
static const feature FEATURE_PANIC_SEED = 1 << 27;
static const feature FEATURE_PANIC_FILE = 1 << 28;
static const feature FEATURE_PANIC = 1 << 29;