12 log_msg(ERROR,
"Stats",
"Stats pointer is NULL");
15 if (1 <= skillpoint) {
22 stats->intelligence++;
28 stats->constitution++;
31 log_msg(ERROR,
"Stats",
"Invalid stat type");
35 log_msg(ERROR,
"Stats",
"Not enough skill points to allocate");
void log_msg(const log_level_t level, const char *module, const char *format,...)
Logs a formatted message with a specified log level and module.
Header file for logging functionality of the game.
void raise_skill(stats_t *stats, stat_type_t stat, int skillpoint)
Raises a specified skill by one point.
Exposes functions for working with stats.