mirror of
				https://github.com/ErikasKontenis/SabrehavenServer.git
				synced 2025-10-31 03:56:22 +01:00 
			
		
		
		
	remove health and mana regeneration from bed
This commit is contained in:
		| @@ -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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 ErikasKontenis
					ErikasKontenis