aboutsummaryrefslogtreecommitdiff
path: root/src/game/StatSystem.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-17 13:34:49 -0500
committermegamage <none@none>2009-06-17 13:34:49 -0500
commitd805e89091027bd81c9d0cb99323afd8f5ab8540 (patch)
tree639d12c9e40ebb686dfbc539d359c07d68bd6db7 /src/game/StatSystem.cpp
parentd4a6a3d09d20e11cbb38d010de9018554dd965a0 (diff)
*Update creature melee damage calculation.
--HG-- branch : trunk
Diffstat (limited to 'src/game/StatSystem.cpp')
-rw-r--r--src/game/StatSystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp
index 8287ed2b2bf..2049964c779 100644
--- a/src/game/StatSystem.cpp
+++ b/src/game/StatSystem.cpp
@@ -880,8 +880,8 @@ void Creature::UpdateDamagePhysical(WeaponAttackType attType)
float weapon_maxdamage = GetWeaponDamageRange(attType, MAXDAMAGE);
float base_value = GetModifierValue(unitMod, BASE_VALUE)
- + (weapon_mindamage + weapon_maxdamage) / 6
- * GetTotalAttackPowerValue(attType) / (getLevel() * 5);
+ + (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);