11#define DAMAGE_TYPE_COUNT 2
13typedef enum damage_type_t {
18typedef enum dice_size_t {
37bool roll_hit(
int attacker_dex,
int defender_dex);
Exposes a forward struct for abilites.
Exposes a forward strucht for the character type.
int deal_damage(character_t *character, damage_type_t damage_type, int damage)
Deals damage to a character based on the damage type and amount.
const char * damage_type_to_string(damage_type_t type)
Converts a damage type enum to a string representation.
void reset_current_stats(character_t *character)
Resets the current stats of a character to their base stats.
const char * dice_size_to_string(dice_size_t size)
Converts a dice size enum to a string representation.
int roll_damage(const ability_t *ability)
Rolls damage based on the ability's roll amount and dice size.
bool roll_hit(int attacker_dex, int defender_dex)
Rolls a D20 to determine if an attack hits.