Untitled
raw download clone
TEXT
views 20
,
size 924 b
void Player::train()
{
		cout << "How long u want to train?: \n";
		cout << "1. 1 Hour	2. 5 Hours	3. 10 Hours\n";
		cin >> choice;
		switch (choice)
		{
		case '1':
		{
			system("cls");
			cout << "\n\n1 Hour Training:  Hp: +2 | Power: +2 \nCost: 10 Energy\n\n";
			hp += 2;
			energy -= 10;
			exp += 1;
			power += 2;
			showStats(); //Pokazuje statystyki po treningu
			break;
		}
		case '2':
		{
			system("cls");
			cout << "\n\n5 Hours Training:  Hp: +10 | Power: +10 \nCost: 50 Energy\n\n";
			hp += 10;
			energy -= 50;
			exp += 5;
			power += 10;
			showStats(); //Pokazuje statystyki po treningu
			break;
		}
		case '3':
		{
			system("cls");
			cout << "\n\n10 Hours Training:  Hp: +20 | Power: +20 \nCost: 100 Energy\n\n";
			hp += 20;
			energy -= 100;
			exp += 10;
			power += 20;
			showStats(); //Pokazuje statystyki po treningu
			break;
		}
		} //switch

		
}
close fullscreen
Login or Register to edit or fork this paste. It's free.