Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Bleed(Player player, int bleedDamage)
- {
- int ceiling = 0;
- int timer = 0;
- if (timer < 300)
- {
- ceiling += bleedDamage;
- if (ceiling > 299)
- {
- ceiling -= 300;
- player.statLife -= 1;
- CombatText.NewText(player.getRect(), Color.White, 1);
- if (player.statLife < 1)
- {
- player.statLife = 1;
- }
- }
- timer++;
- }
- }
- public override bool UseItem(Player player)
- {
- Bleed(player, 100);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement