Skip to content

Commit

Permalink
Don't remove overload stats on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
GregHib committed May 18, 2024
1 parent 8d472d4 commit 04c1f45
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,13 @@ timerTick("overload") { player ->
}

timerStop("overload") { player ->
if (logout) {
return@timerStop
}
removeBoost(player)
player.levels.restore(Skill.Constitution, 500)
player.message("<dark_red>The effects of overload have worn off and you feel normal again.")
player["overload_refreshes_remaining"] = 0
}

fun applyBoost(player: Player) {
Expand Down

0 comments on commit 04c1f45

Please sign in to comment.