mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 01:29:21 +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;
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user