DungeonCrawl
|
Implementation for stats. More...
Go to the source code of this file.
Functions | |
void | raise_skill (stats_t *stats, stat_type_t stat, int skillpoint) |
Raises a specified skill by one point. |
Implementation for stats.
Definition in file stats.c.
void raise_skill | ( | stats_t * | stats, |
stat_type_t | stat, | ||
int | skillpoint ) |
Raises a specified skill by one point.
This function increases the value of the specified skill in the stats structure by one, provided that the skill point is valid.
stats | Pointer to the stats structure. |
stat | The type of stat to raise (e.g., STRENGTH, INTELLIGENCE). |
skillpoint | The number of skill points available for allocation. |
Definition at line 10 of file stats.c.