diff options
author | megamage <none@none> | 2009-06-19 17:13:36 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-19 17:13:36 -0500 |
commit | 39d3b492fe78cf50c147ce0e017614be6b074741 (patch) | |
tree | ca6ea328ca701cb740a4aab681f7e0b05e3367f1 /src/game/StatSystem.cpp | |
parent | 8f0cb4a3a291869472e7b793f4ab550b6760430c (diff) |
*Update creature damage calculation.
--HG--
branch : trunk
Diffstat (limited to 'src/game/StatSystem.cpp')
-rw-r--r-- | src/game/StatSystem.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp index 1d6ad79fda8..bb7b1273ac0 100644 --- a/src/game/StatSystem.cpp +++ b/src/game/StatSystem.cpp @@ -881,10 +881,10 @@ void Creature::UpdateDamagePhysical(WeaponAttackType attType) float weapon_mindamage = GetWeaponDamageRange(attType, MINDAMAGE); float weapon_maxdamage = GetWeaponDamageRange(attType, MAXDAMAGE); - float base_value = GetModifierValue(unitMod, BASE_VALUE) - + (weapon_mindamage + weapon_maxdamage) - * GetTotalAttackPowerValue(attType) / (getLevel() * 30); - //float base_value = GetModifierValue(unitMod, BASE_VALUE) + GetTotalAttackPowerValue(attType); + //float base_value = GetModifierValue(unitMod, BASE_VALUE) + // + (weapon_mindamage + weapon_maxdamage) + // * GetTotalAttackPowerValue(attType) / (getLevel() * 30); + float base_value = GetModifierValue(unitMod, BASE_VALUE) + GetTotalAttackPowerValue(attType); float base_pct = GetModifierValue(unitMod, BASE_PCT); float total_value = GetModifierValue(unitMod, TOTAL_VALUE); float total_pct = GetModifierValue(unitMod, TOTAL_PCT); |