From cc12345fa15ac905c8d2e9b03d542ba81d10442c Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Sat, 1 May 2021 19:57:36 +0300 Subject: [PATCH] remove health and mana regeneration from bed --- src/bed.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bed.cpp b/src/bed.cpp index 90629a9..f233e31 100644 --- a/src/bed.cpp +++ b/src/bed.cpp @@ -219,7 +219,7 @@ void BedItem::regeneratePlayer(Player* player) const { const uint32_t sleptTime = time(nullptr) - sleepStart; - Condition* condition = player->getCondition(CONDITION_REGENERATION, CONDITIONID_DEFAULT); + /*Condition* condition = player->getCondition(CONDITION_REGENERATION, CONDITIONID_DEFAULT); if (condition) { uint32_t regen; if (condition->getTicks() != -1) { @@ -236,7 +236,7 @@ void BedItem::regeneratePlayer(Player* player) const player->changeHealth(regen, false); player->changeMana(regen); - } + }*/ const int32_t soulRegen = sleptTime / (60 * 15); player->changeSoul(soulRegen);