remove health and mana regeneration from bed

This commit is contained in:
ErikasKontenis 2021-05-01 19:57:36 +03:00
parent 9d0bec1586
commit cc12345fa1

View File

@ -219,7 +219,7 @@ void BedItem::regeneratePlayer(Player* player) const
{ {
const uint32_t sleptTime = time(nullptr) - sleepStart; 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) { if (condition) {
uint32_t regen; uint32_t regen;
if (condition->getTicks() != -1) { if (condition->getTicks() != -1) {
@ -236,7 +236,7 @@ void BedItem::regeneratePlayer(Player* player) const
player->changeHealth(regen, false); player->changeHealth(regen, false);
player->changeMana(regen); player->changeMana(regen);
} }*/
const int32_t soulRegen = sleptTime / (60 * 15); const int32_t soulRegen = sleptTime / (60 * 15);
player->changeSoul(soulRegen); player->changeSoul(soulRegen);