Created
July 17, 2013 16:20
-
-
Save residentkrm/6022113 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp | |
index 11ad8c0..eca3994 100644 | |
--- a/src/game/StatSystem.cpp | |
+++ b/src/game/StatSystem.cpp | |
@@ -252,9 +252,9 @@ void Player::UpdateAttackPowerAndDamage(bool ranged ) | |
UnitMods unitMod = ranged ? UNIT_MOD_ATTACK_POWER_RANGED : UNIT_MOD_ATTACK_POWER; | |
- uint16 index = UNIT_FIELD_ATTACK_POWER; | |
- uint16 index_mod = UNIT_FIELD_ATTACK_POWER_MODS; | |
- uint16 index_mult = UNIT_FIELD_ATTACK_POWER_MULTIPLIER; | |
+ uint32 index = UNIT_FIELD_ATTACK_POWER; | |
+ uint32 index_mod = UNIT_FIELD_ATTACK_POWER_MODS; | |
+ uint32 index_mult = UNIT_FIELD_ATTACK_POWER_MULTIPLIER; | |
if(ranged) | |
{ | |
@@ -328,10 +328,10 @@ void Player::UpdateAttackPowerAndDamage(bool ranged ) | |
switch(form) | |
{ | |
case FORM_CAT: | |
- val2 = GetStat(STAT_STRENGTH)*2.0f + GetStat(STAT_AGILITY) - 20.0f + mLevelBonus + m_baseFeralAP + mBonusWeaponAtt; break; | |
+ val2 = GetStat(STAT_STRENGTH)*2.0f + GetStat(STAT_AGILITY)*1.5f + mLevelBonus + m_baseFeralAP + mBonusWeaponAtt; break; | |
case FORM_BEAR: | |
case FORM_DIREBEAR: | |
- val2 = GetStat(STAT_STRENGTH)*2.0f - 20.0f + mLevelBonus + m_baseFeralAP + mBonusWeaponAtt; break; | |
+ val2 = GetStat(STAT_STRENGTH)*2.5f + mLevelBonus + m_baseFeralAP + mBonusWeaponAtt; break; | |
case FORM_MOONKIN: | |
val2 = GetStat(STAT_STRENGTH)*2.0f - 20.0f + m_baseFeralAP + mBonusWeaponAtt; break; | |
default: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment