void LevelUp(void) { statPointsToSpend += STAT_POINTS_PER_LEVEL; ++characterData.level; characterData.xpForNextLevel += ComputeXPForNextLevel(characterData.level); characterData.stats.maxHealth = ComputePlayerHealth(characterData.level); if(characterData.stats.maxHealth > 9999) characterData.stats.maxHealth = 9999; characterData.stats.currentHealth = characterData.stats.maxHealth; UpdateCharacterLevel(); UpdateCharacterHealth(); ShowStatMenu(); }
void LevelUp(void) { INFO_LOG("Level up."); LevelUpData(); ShowStatMenu(); }