Skip to content

Commit

Permalink
Remove duplicate overload timer methods
Browse files Browse the repository at this point in the history
  • Loading branch information
GregHib committed Feb 11, 2024
1 parent 333d4b0 commit 5190c9b
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on<Consumable>({ item.id.startsWith("overload") }) { player: Player ->
}
}

consume("overload*") { player: Player ->
consume("overload_#") { player: Player ->
player["overload_refreshes_remaining"] = 20
player.timers.start("overload")
}
Expand All @@ -38,15 +38,12 @@ playerSpawn { player: Player ->
}
}

timerStart("overload") { _: Player ->
interval = 25
}

timerStart("overload") { player: Player ->
interval = 25
if (restart) {
return@timerStart
}
player.queue(name = "hit") {
player.queue(name = "overload_hits") {
repeat(5) {
player.directHit(100)
player.setAnimation("overload")
Expand Down

0 comments on commit 5190c9b

Please sign in to comment.