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:
parent
fecd838fe7
commit
b83c70589e
1 changed files with 4 additions and 0 deletions
|
@ -481,6 +481,10 @@ float CalcStats::autoAttack( const Sapphire::Entity::Chara& chara )
|
||||||
autoAttackDelay = pItem->getDelay() / 1000.f;
|
autoAttackDelay = pItem->getDelay() / 1000.f;
|
||||||
weaponDamage = pItem->getWeaponDmg();
|
weaponDamage = pItem->getWeaponDmg();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
weaponDamage = chara.getLevel() * 10;
|
||||||
|
}
|
||||||
|
|
||||||
auto level = chara.getLevel();
|
auto level = chara.getLevel();
|
||||||
auto mainVal = static_cast< float >( levelTable[ level ][ Common::LevelTableEntry::MAIN ] );
|
auto mainVal = static_cast< float >( levelTable[ level ][ Common::LevelTableEntry::MAIN ] );
|
||||||
|
|
Loading…
Add table
Reference in a new issue