Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Coal cooldown period
- if (coalCooldown) {
- if (++coolDownDamageTimer % 2 == 0)
- coalTimer--;
- if (coalTimer <= 0) {
- coalCooldown = false;
- coalTimer = 0;
- coolDownDamageTimer = 0;
- }
- }
- //Deal coal damage
- if (!global.debugInvincibility) {
- if (coalTimer % coalTimerMultiplier <= 3 && coalTimer >= (coalTimerMultiplier * coalTimerDamageThreshold)) {
- drawHitspark = ((coalTimer % coalTimerMultiplier < 2) && (coalTimer % coalTimerMultiplier > 0));
- if ((onCoals && coalTimer % coalTimerMultiplier == 0) || (coalCooldown && coolDownDamageTimer % coalTimerMultiplier == 0))
- global._health--;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement