merged DT/add-troll-char
This commit is contained in:
@ -35,22 +35,33 @@ enum game_command {game_command_terminate = 0,
|
||||
game_command_pass, game_command_panic
|
||||
};
|
||||
|
||||
enum stat_name {HP, ATK, DEF, hostile};
|
||||
|
||||
const int RACE_CNT = 6; // TODO: update as you go
|
||||
|
||||
enum race {rshade = 0, rvampire, rgoblin, rdrow, rdragon, rmerchant /* TODO: fill out the other races (including enemies) */};
|
||||
|
||||
// TODO: fill out the other races (including enemies)
|
||||
const int MAX_HP[RACE_CNT] = {125, INF, 110, 150, 150, 30};
|
||||
const int STARTING_HP[RACE_CNT] = {125, 50, 110, 150, 150, 30};
|
||||
const int STARTING_ATK[RACE_CNT] = {25, 25, 15, 25, 20, 70};
|
||||
const int STARTING_DEF[RACE_CNT] = {25, 25, 20, 15, 20, 5};
|
||||
const char CHARACTER_REP[RACE_CNT] = {'S', 'V', 'G', 'd', 'D', 'M'};
|
||||
// Character generation related
|
||||
const int RACE_CNT = 12;
|
||||
enum race {rshade = 0, rdrow, rvampire, rtroll,
|
||||
rgoblin, rhuman, rdwarf, relf,
|
||||
rorc, rmerchant, rdragon, rhalfling
|
||||
};
|
||||
const char *RACE_NAME[RACE_CNT] = {
|
||||
"Shade", "Vampire", "Goblin", "Drow", "Dragon"
|
||||
"Shade", "Drow", "Vampire", "Troll",
|
||||
"Goblin", "Human", "Dwarf", "Elf",
|
||||
"Orc", "Merchant", "Dragon", "Halfling"
|
||||
};
|
||||
|
||||
const int MAX_HP[RACE_CNT] = {
|
||||
125, 150, INF, 120, 110, 140, 100, 140, 180, 30, 150, 100
|
||||
};
|
||||
const int STARTING_HP[RACE_CNT] = {
|
||||
125, 150, 50, 120, 110, 140, 100, 140, 180, 30, 150, 100
|
||||
};
|
||||
const int STARTING_ATK[RACE_CNT] = {
|
||||
25, 25, 25, 25, 15, 20, 20, 30, 30, 70, 20, 15
|
||||
};
|
||||
const int STARTING_DEF[RACE_CNT] = {
|
||||
25, 15, 25, 15, 20, 20, 30, 10, 25, 5, 20, 20
|
||||
};
|
||||
|
||||
|
||||
// Potion-related
|
||||
const int POTION_TYPE_CNT = 6;
|
||||
const int DEFAULT_POTION_TYPE_CNT = 6;
|
||||
enum potion_type {restore_health = 0, boost_atk, boost_def,
|
||||
@ -67,6 +78,7 @@ const int CALC_ADD_LATER = 2;
|
||||
const int CALC_MUL_LATER = 3;
|
||||
const int CALC_ADD_FIXED = 4;
|
||||
|
||||
|
||||
const int DIRECTION_CNT = 8;
|
||||
// IMPORTANT: east is positive for x and SOUTH is positive for y
|
||||
// initializes all directions to an int
|
||||
@ -75,8 +87,8 @@ enum direction { north = 0, south, east, west, northeast,
|
||||
};
|
||||
|
||||
const position MOVE[DIRECTION_CNT] = {
|
||||
{0, -1}, {0, 1}, {1, 0}, {-1, 0},
|
||||
{1, -1}, {-1, -1}, {1, 1}, {-1, 1}
|
||||
{0, -1}, {0, 1}, {1, 0}, {-1, 0},
|
||||
{1, -1}, {-1, -1}, {1, 1}, {-1, 1}
|
||||
};
|
||||
|
||||
const int MAP_HEIGHT = 25;
|
||||
|
Reference in New Issue
Block a user