1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-28 12:17:46 +00:00

scale npc aa damage base on level

This commit is contained in:
collett 2020-01-11 21:37:07 +09:00
parent fecd838fe7
commit b83c70589e

View file

@ -481,6 +481,10 @@ float CalcStats::autoAttack( const Sapphire::Entity::Chara& chara )
autoAttackDelay = pItem->getDelay() / 1000.f;
weaponDamage = pItem->getWeaponDmg();
}
else
{
weaponDamage = chara.getLevel() * 10;
}
auto level = chara.getLevel();
auto mainVal = static_cast< float >( levelTable[ level ][ Common::LevelTableEntry::MAIN ] );