Bartol47

Untitled

Mar 27th, 2022
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. def lvl_up():
  2. print("LEVEL UP!")
  3. H_lvl += 1
  4. skill_point += 2
  5. HEAL += 10
  6. VUN += 10
  7. print("LVL: ", H_lvl)
  8. print("Очков доступно: ", skill_point)
  9.  
  10. up_xp = int()
  11. H_lvl = 1
  12. H_xp = 0
  13. skill_point = 0
  14. HEAL = 0
  15. VUN = 0
  16.  
  17. while H_xp > (-1):
  18. up_xp = int(input("Вы получили опыт: "))
  19. H_xp += up_xp
  20. print("Ваш опыт: ", H_xp)
  21. if H_xp >= 100 and H_lvl == 1:
  22. lvl_up()
  23. if H_xp >= 400 and H_lvl == 2:
  24. lvl_up()
  25. if H_xp >= 800 and H_lvl == 3:
  26. lvl_up()
  27.  
Advertisement
Add Comment
Please, Sign In to add comment