Jump to content
  • Health does not recover


    Chucksta
    • Status: Completed
      Main Category: Core / Mangos Daemon
      Sub-Category: Show Stopper
      Version: 22.1 Milestone: 24 Priority: High
      Implemented Version: 22.1
      Assigned: Chucksta

    The player's character's health never recovers.

    Tested this on a Pala and rogue, and health did not recover for either of them.

    Note: mana for the pala did recover.

    Rogues power is also broken, but I'll put that issue in another thread.


    User Feedback

    Recommended Comments

    Chucksta

    Posted

    I'll look at this right away, seeing as it most definitely makes the game unplayable, or at least playable only for as long as the toon has any life (3 or 4 bouts of combat), lol

    Chucksta

    Posted

    I threw in some outputs to show what is happening when the toon is suppsoedly having its health regenerated, and it comes up saying that it is able to be regenerated (not in combat), but when it goes to call the modify health function - ModifyHealth(int32(addvalue)); - the value passed (addvalue) always holds 0.

    I made it pass in a static value of 5.0, and the toon's health was regenerated.

    Now to figure out why the actual regen value is not being calculated correctly!

    Chucksta

    Posted

    float HealthIncreaseRate = sWorld.getConfig(CONFIG_FLOAT_RATE_HEALTH);

    That is not working, it constantly gives a result of 0

    Chucksta

    Posted

    The mangos.conf value for the health regen rate is obviously not being reead in properly.

    As a temporary fix I have set the regen rate to 1, as it is in the conf file

        // 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
     

    Temporary fix:

    https://github.com/mangosthree/server/pull/107

    Chucksta

    Posted

    Changing to a category of 'Minor' as the health now regenerates, but

    The actual cause still needs to be fixed, which is that the regen rate is not being read correctly from the mangosd.conf file.

    There may be other values that are also not being read from the mangosd.conf file, such as any related to Energy generation.



    Guest
    This is now closed for further comments

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use