mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 22:56:37 +00:00
Fix 95% of food/water consumption issues, if there are additional modifiers for race/class combos - those will need to be applied
Mods properly calculated Stages should be put in place if not already: https://wiki.project1999.com/Food_and_drink#Stages_of_Hunger_and_Thirst Values stored in the database are 0-6000, previously we capped it at 6000 but previous math would have normal values in the 60k+ range in order for food to be consumed at a reasonable rate. We are now using more native logic where 1 = 1 minute, following logic: (Minutes) 0 - 5 - This is a snack. 6 - 20 - This is a meal. 21 - 30 - This is a hearty meal. 31 - 40 - This is a banquet size meal. 41 - 50 - This meal is a feast! 51 - 60 - This is an enduring meal! 61 - X - This is a miraculous meal!
This commit is contained in:
+2
-1
@@ -1351,7 +1351,7 @@ private:
|
||||
uint32 GetClassHPFactor();
|
||||
void DoHPRegen();
|
||||
void DoManaRegen();
|
||||
void DoStaminaUpdate();
|
||||
void DoStaminaHungerUpdate();
|
||||
void CalcRestState();
|
||||
|
||||
uint32 pLastUpdate;
|
||||
@@ -1459,6 +1459,7 @@ private:
|
||||
Timer camp_timer;
|
||||
Timer process_timer;
|
||||
Timer stamina_timer;
|
||||
Timer consume_food_timer;
|
||||
Timer zoneinpacket_timer;
|
||||
Timer linkdead_timer;
|
||||
Timer dead_timer;
|
||||
|
||||
Reference in New Issue
Block a user