mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-29 09:09:20 +02:00
remove health and mana regeneration from bed
This commit is contained in:
parent
9d0bec1586
commit
cc12345fa1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user