added T-800 as playable character

This commit is contained in:
2024-07-15 19:33:32 -04:00
parent 1ebdd2d162
commit 991ab34ca2
8 changed files with 56 additions and 13 deletions

View File

@ -4,6 +4,7 @@
#include <ncurses.h>
#include <string>
#include "position.h"
#include "fraction.h"
static const int INF = 0x3F3F3F3F;
@ -41,27 +42,33 @@ enum game_command : int {game_command_terminate = 0,
};
// Character generation related
static const int RACE_CNT = 12;
static const int RACE_CNT = 13;
enum race : int {rshade = 0, rdrow, rvampire, rtroll,
rgoblin, rhuman, rdwarf, relf,
rorc, rmerchant, rdragon, rhalfling
rorc, rmerchant, rdragon, rhalfling,
rt_800
};
static const char CHAR_REP[RACE_CNT] = {
's', 'd', 'v', 't', 'g', 'H', 'W', 'E', 'O', 'M', 'D', 'L'
's', 'd', 'v', 't', 'g', 'H', 'W', 'E', 'O', 'M', 'D', 'L', 't'
};
static const int MAX_HP[RACE_CNT] = {
125, 150, INF, 120, 110, 140, 100, 140, 180, 30, 150, 100
125, 150, INF, 120, 110, 140, 100, 140, 180, 30, 150, 100, 500
};
static const int STARTING_HP[RACE_CNT] = {
125, 150, 50, 120, 110, 140, 100, 140, 180, 30, 150, 100
125, 150, 50, 120, 110, 140, 100, 140, 180, 30, 150, 100, 500
};
static const int STARTING_ATK[RACE_CNT] = {
25, 25, 25, 25, 15, 20, 20, 30, 30, 70, 20, 15
25, 25, 25, 25, 15, 20, 20, 30, 30, 70, 20, 15, 40
};
static const int STARTING_DEF[RACE_CNT] = {
25, 15, 25, 15, 20, 20, 30, 10, 25, 5, 20, 20
25, 15, 25, 15, 20, 20, 30, 10, 25, 5, 20, 20, 50
};
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}
};