erzis

Untitled

Oct 28th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. case 4:
  2. {
  3. system("cls");
  4. cout << endl;
  5. cout << "Witamy w sklepie!" << endl;
  6. cout << endl;
  7. cout << "1 = Ostrze posejdona (+5 do ataku) 30 monet" << endl;
  8. cout << "2 = Pancerz heliosa (+13 do obrony) 42 monety" << endl;
  9. cin >> sklep_wybor;
  10. if (ostrze_posejdona <= gold)
  11. {
  12. switch (sklep_wybor)
  13. {
  14. case 1:
  15. {
  16. gold = gold - ostrze_posejdona;
  17. sila = sila + 5;
  18. cout << "Gratulacje! Pomyslnie dokonano zakupu." << endl;
  19. cout << "Twoj bohater otrzymal +5 pkt do ataku" << endl;
  20. cout << endl;
  21. cout << "Nacisnij cokolwiek aby wrocic do menu glownego." << endl;
  22. _getch();
  23. }
  24. }
  25.  
  26. }
  27. else if (ostrze_posejdona > gold)
  28. {
  29. cout << endl;
  30. cout << "Nie masz tyle monet." << endl;
  31. cout << endl;
  32. cout << "Nacisnij cokolwiek aby wrocic do menu glownego." << endl;
  33. _getch();
  34. }
  35. break;
  36. }
Add Comment
Please, Sign In to add comment