예제 #1
0
파일: Battle.c 프로젝트: mla133/PebbGame
void BattleUpdate(void)
{
	if(currentMonsterHealth <= 0)
	{
		CloseBattleWindow();
		GrantGold(currentFloor * currentMonster->goldScale);
		if(currentFloor == 20)
		{
			ShowEndWindow();
		}
		else if(GrantExperience(currentFloor))
		{
			LevelUp();
		}
		return;
	}

	MonsterAttack();
}
예제 #2
0
void ForceLevelUp(void)
{
	GrantExperience(characterData.xpForNextLevel - characterData.xp);
	LevelUp();
}