Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. public void Bleed(Player player, int bleedDamage)
  2. {
  3. int ceiling = 0;
  4. int timer = 0;
  5. if (timer < 300)
  6. {
  7. ceiling += bleedDamage;
  8. if (ceiling > 299)
  9. {
  10. ceiling -= 300;
  11. player.statLife -= 1;
  12. CombatText.NewText(player.getRect(), Color.White, 1);
  13. if (player.statLife < 1)
  14. {
  15. player.statLife = 1;
  16. }
  17. }
  18. timer++;
  19. }
  20. }
  21.  
  22. public override bool UseItem(Player player)
  23. {
  24. Bleed(player, 100);
  25. return true;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement