Jump to content

cabfever

Donator
  • Posts

    390
  • Joined

  • Last visited

  • Days Won

    1
  • Donations

    0.00 GBP 

Bug Comments posted by cabfever

  1. [quote=Xenithar]Alright, found an oddity here. Thrall has only 2665 hp. Cairne and Onyxia only have 3331 hp. Thrall should have 360k hp. Reference is below. Heck, I have people below 60 who have more HP than them!

    [url=http://datenbank.welli-it.de/?npc=4949]Thrall - NPCs - Classic WoW - 1.12.1 Datenbank[/url][/quote]


    This is due to the new HP/Mana Calculation on creatures.cpp (the modifier is not working at this moment). I commented the new calculation out like this:

    [code]
    //////////////////////////////////////////////////////////////////////////
    // Calculate level dependend stats
    //////////////////////////////////////////////////////////////////////////

    uint32 health;
    uint32 mana;
    // New style of calculating health/mana is not working properly
    /* if (CreatureClassLvlStats const* cCLS = sObjectMgr.GetCreatureClassLvlStats(level, cinfo->UnitClass))
    {
    // Use Creature Stats to calculate stat values

    // health
    health = cCLS->BaseHealth * cinfo->HealthMultiplier;

    // mana
    mana = cCLS->BaseMana * cinfo->ManaMultiplier;
    }
    else */
    // {
    // Use old style to calculate stat values
    float rellevel = maxlevel == minlevel ? 0 : (float(level - minlevel)) / (maxlevel - minlevel);

    // health
    uint32 minhealth = std::min(cinfo->MaxLevelHealth, cinfo->MinLevelHealth);
    uint32 maxhealth = std::max(cinfo->MaxLevelHealth, cinfo->MinLevelHealth);
    health = uint32(minhealth + uint32(rellevel * (maxhealth - minhealth)));

    // mana
    uint32 minmana = std::min(cinfo->MaxLevelMana, cinfo->MinLevelMana);
    uint32 maxmana = std::max(cinfo->MaxLevelMana, cinfo->MinLevelMana);
    mana = minmana + uint32(rellevel * (maxmana - minmana));
    // }

    health *= _GetHealthMod(rank); // Apply custom config settting
    if (health health = 1;
    [/code]

  2. cmake with extract-tools =

    [code]

    [ 64%] Building CXX object src/tools/Movemap-Generator/CMakeFiles/mmap-generator.dir/MapBuilder.cpp.o
    /home/mangos/mangoszero/server/src/tools/Movemap-Generator/MapBuilder.cpp: In member function ‘void MMAP::MapBuilder::buildNavMesh(uint32, dtNavMesh*&)’:
    /home/mangos/mangoszero/server/src/tools/Movemap-Generator/MapBuilder.cpp:319:24: error: ‘DT_POLY_BITS’ was not declared in this scope
    int polyBits = DT_POLY_BITS;
    ^
    make[2]: *** [src/tools/Movemap-Generator/CMakeFiles/mmap-generator.dir/MapBuilder.cpp.o] Error 1
    make[1]: *** [src/tools/Movemap-Generator/CMakeFiles/mmap-generator.dir/all] Error 2
    make: *** [all] Error 2
    [/code]

×
×
  • 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