From c8b634a7f9845a08cebc5519cddf1c3bec69a4cf Mon Sep 17 00:00:00 2001 From: GregHib Date: Fri, 31 May 2024 00:39:37 +0100 Subject: [PATCH] Fix hitpoint test --- .../interact/entity/player/effect/HitpointRestorationTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/src/test/kotlin/world/gregs/voidps/world/interact/entity/player/effect/HitpointRestorationTest.kt b/game/src/test/kotlin/world/gregs/voidps/world/interact/entity/player/effect/HitpointRestorationTest.kt index 189e9f6ea..68b903c09 100644 --- a/game/src/test/kotlin/world/gregs/voidps/world/interact/entity/player/effect/HitpointRestorationTest.kt +++ b/game/src/test/kotlin/world/gregs/voidps/world/interact/entity/player/effect/HitpointRestorationTest.kt @@ -51,11 +51,11 @@ internal class HitpointRestorationTest : WorldTest() { fun `Hitpoints shouldn't restore if dead`() { val player = createPlayer("player") player.experience.set(Skill.Constitution, Level.experience(Skill.Constitution, 990)) - player.levels.set(Skill.Constitution, 990) + player.levels.set(Skill.Constitution, 980) val drained = player.levels.drain(Skill.Constitution, 990) + assertEquals(-980, drained) assertTrue(player.softTimers.contains("restore_hitpoints")) - assertEquals(-990, drained) assertEquals(0, player.levels.get(Skill.Constitution)) tick(11) assertFalse(player.softTimers.contains("restore_hitpoints"))