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;
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);