merged AL-races

This commit is contained in:
2024-07-11 12:32:12 -04:00
9 changed files with 122 additions and 19 deletions

View File

@ -4,12 +4,12 @@
#include <ncurses.h>
#include "position.h"
// IMPORTANT: panic is reserved for invalid results
const int INF = 0x3F3F3F3F;
enum error {none};
// TODO: update result to include subject
enum result {fine, died, go_down, hit, moved};
enum result {fine, died, go_down, hit, moved, miss};
enum game_status {terminated, main_menu, in_game, options};
@ -34,16 +34,18 @@ 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 = 2; // TODO: update as you go
const int RACE_CNT = 4; // TODO: update as you go
enum race {unknown = 0, rshade /* 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};
const int STARTING_HP[RACE_CNT] = {0, 125};
const int STARTING_ATK[RACE_CNT] = {0, 25};
const int STARTING_DEF[RACE_CNT] = {0, 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'};
const int DIRECTION_CNT = 8;
// IMPORTANT: east is positive for x and SOUTH is positive for y