Change scale of GetPermaHaste()

This commit is contained in:
Michael Cook (mackal) 2014-09-09 22:50:50 -04:00
parent ed4e762f03
commit 881f937a35
2 changed files with 3 additions and 3 deletions

View File

@ -4811,7 +4811,7 @@ void Mob::SetAttackTimer()
void Client::SetAttackTimer()
{
float PermaHaste = GetPermaHaste() * 100.0f;
float PermaHaste = GetPermaHaste();
//default value for attack timer in case they have
//an invalid weapon equipped:
@ -4907,7 +4907,7 @@ void Client::SetAttackTimer()
void NPC::SetAttackTimer()
{
float PermaHaste = GetPermaHaste() * 100.0f;
float PermaHaste = GetPermaHaste();
//default value for attack timer in case they have
//an invalid weapon equipped:

View File

@ -684,7 +684,7 @@ public:
inline bool GetInvul(void) { return invulnerable; }
inline void SetExtraHaste(int Haste) { ExtraHaste = Haste; }
virtual int GetHaste();
inline float GetPermaHaste() { return GetHaste() ? 1.0f / (1.0f + static_cast<float>(GetHaste()) / 100.0f) : 1.0f; }
inline float GetPermaHaste() { return GetHaste() ? 100.0f / (1.0f + static_cast<float>(GetHaste()) / 100.0f) : 100.0f; }
uint8 GetWeaponDamageBonus(const Item_Struct* Weapon);
uint16 GetDamageTable(SkillUseTypes skillinuse);