From 062bd74cf871a2531d142a4d9ab53cefb89bab9d Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 24 Oct 2022 18:26:26 +0700 Subject: [PATCH] actually, regenerate strictly 1 heart at most --- .../mc/otm/android/feature/NanobotsRegenerationFeature.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsRegenerationFeature.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsRegenerationFeature.kt index fcd1b372e..4a0fcb6c5 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsRegenerationFeature.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsRegenerationFeature.kt @@ -22,7 +22,7 @@ class NanobotsRegenerationFeature(android: MatteryPlayerCapability) : AndroidFea val waitTime = TICKS_BETWEEN_HEAL.getOrElse(healTicks) { TICKS_BETWEEN_HEAL.last() } if (ticksPassed > waitTime) { - val missingHealth = (ply.maxHealth - ply.health).coerceAtMost(2f + (level * 2f)) + val missingHealth = (ply.maxHealth - ply.health).coerceAtMost(2f) val power = ENERGY_PER_HITPOINT * missingHealth val extracted = android.androidEnergy.extractEnergyInner(power, false)