added potion and restore_health

This commit is contained in:
2024-07-11 21:32:23 -04:00
parent ae5cd1e0c6
commit 0312986dce
7 changed files with 102 additions and 33 deletions

View File

@ -36,14 +36,25 @@ enum layer_num {map = 0, objects, characters, shop};
const int RACE_CNT = 4; // TODO: update as you go
enum race {unknown = 0, rshade, rvampire, goblin /* TODO: fill out the other races (including enemies) */};
enum race {rshade = 0, rvampire, rgoblin, rdrow /* 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, 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'};
const int MAX_HP[RACE_CNT] = {125, INF, 110, 150};
const int STARTING_HP[RACE_CNT] = {125, 50, 110, 150};
const int STARTING_ATK[RACE_CNT] = {25, 25, 15, 25};
const int STARTING_DEF[RACE_CNT] = {25, 25, 20, 15};
const char CHARACTER_REP[RACE_CNT] = {'S', 'V', 'G', 'D'};
enum potion_type {restore_health = 0, boost_atk, boost_def,
poison_health, wound_atk, wound_def
};
// Calculation priorities
const int CALC_ADD_BASE = 0;
const int CALC_MUL_BASE = 1;
const int CALC_ADD_LATER = 2;
const int CALC_MUL_LATER = 3;
const int CALC_ADD_FIXED = 4;