Advertisement
TheSkipper1995

Untitled

Mar 16th, 2019
693
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Coal cooldown period
  2. if (coalCooldown) {
  3.     if (++coolDownDamageTimer % 2 == 0)
  4.         coalTimer--;
  5.     if (coalTimer <= 0) {
  6.         coalCooldown = false;
  7.         coalTimer = 0;
  8.         coolDownDamageTimer = 0;
  9.     }
  10. }
  11.  
  12. //Deal coal damage
  13. if (!global.debugInvincibility) {
  14.     if (coalTimer % coalTimerMultiplier <= 3 && coalTimer >= (coalTimerMultiplier * coalTimerDamageThreshold)) {
  15.         drawHitspark = ((coalTimer % coalTimerMultiplier < 2) && (coalTimer % coalTimerMultiplier > 0));
  16.         if ((onCoals && coalTimer % coalTimerMultiplier == 0) || (coalCooldown && coolDownDamageTimer % coalTimerMultiplier == 0))
  17.             global._health--;
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement