mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
Player health regen fixed - temporary fix
The regen wroks, but only due to assigning the default regen value as a constant, instead of loading it from the mangosd.conf file. The reading of the value from the mangosd.conf file still needs to be fixed.
This commit is contained in:
parent
0569fdf697
commit
5a1f96eef5
1 changed files with 2 additions and 0 deletions
|
|
@ -2247,6 +2247,8 @@ void Player::RegenerateHealth(uint32 diff)
|
|||
if (curValue >= maxValue) return;
|
||||
|
||||
float HealthIncreaseRate = sWorld.getConfig(CONFIG_FLOAT_RATE_HEALTH);
|
||||
// This needs fixing
|
||||
HealthIncreaseRate = 1.0f; // having to do this as the above constantly results in 0 - mangosd.conf is obviously not being read properly
|
||||
|
||||
float addvalue = 0.0f;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue