- impl goblin character class

This commit is contained in:
a25liang
2024-07-02 21:58:56 -04:00
parent bd372f7a47
commit 9086f0773a
7 changed files with 59 additions and 14 deletions

View File

@ -8,7 +8,7 @@
const int INF = 0x3F3F3F3F;
enum error {none};
enum error {none};
// TODO: update result to include subject
enum result {fine, died, go_down, hit, moved, miss};
@ -18,16 +18,16 @@ enum stat_name {HP, ATK, DEF, hostile};
const int LAYER_CNT = 4; // TODO: update as you go
enum layer_num {map = 0, objects, characters, shop};
const int RACE_CNT = 3; // TODO: update as you go
const int RACE_CNT = 4; // TODO: update as you go
enum race {unknown = 0, rshade , rvampire /* TODO: fill out the other races (including enemies) */};
enum race {unknown = 0, rshade , rvampire, goblin /* TODO: fill out the other races (including enemies) */};
// TODO: fill out the other races (including enemies)
const int MAX_HP[RACE_CNT] = {0, 125, INF};
const int STARTING_HP[RACE_CNT] = {0, 125, 50};
const int STARTING_ATK[RACE_CNT] = {0, 25, 25};
const int STARTING_DEF[RACE_CNT] = {0, 25, 25};
const char CHARACTER_REP[RACE_CNT] = {'@', 'S'};
const int MAX_HP[RACE_CNT] = {0, 125, INF, 110};
const int STARTING_HP[RACE_CNT] = {0, 125, 50, 110};
const int STARTING_ATK[RACE_CNT] = {0, 25, 25, 15};
const int STARTING_DEF[RACE_CNT] = {0, 25, 25, 20};
const char CHARACTER_REP[RACE_CNT] = {'@', 'S', 'V', 'G'};