13 return 100 + 10 * level;
18 player->xp += xp_earned;
30 player->skill_points += 1;
void level_up(character_t *player)
Handles the level-up process for a character.
int calculate_xp_for_next_level(int level)
Calculates the XP required for the next level.
void add_xp(character_t *player, int xp_earned)
Adds XP to a character and handles level-up if the XP threshold is reached.
Exposes functions for working with the character.
Header file for logging functionality of the game.