Fixed antipoison not working in some scenarios

Added new ::timers admin command
This commit is contained in:
Avi Weinstock
2023-09-01 12:29:12 +00:00
committed by Ryan
parent 3b0360eb01
commit 12eaa1e05a
5 changed files with 17 additions and 5 deletions
@@ -1,12 +1,14 @@
package content.data.consumables.effects
import core.api.registerTimer
import core.api.removeTimer
import core.api.spawnTimer
import core.game.consumable.ConsumableEffect
import core.game.node.entity.player.Player
class AddTimerEffect (val identifier: String, vararg val args: Any) : ConsumableEffect() {
override fun activate (p: Player) {
removeTimer (p, identifier)
val timer = spawnTimer (identifier, *args) ?: return
registerTimer (p, timer)
}