Update creature_template column names.

Changed to all lower case with underscores.
This commit is contained in:
ratkosrb
2019-01-23 08:29:34 +02:00
parent b5849d266c
commit a7905795ac
60 changed files with 527 additions and 504 deletions
+2 -2
View File
@@ -804,9 +804,9 @@ void Creature::UpdateDamagePhysical(WeaponAttackType attType)
* ie if AP is reduced to 0, attack will be reduced of 30%
* We have to ignore creatures that don't have AP set in database (we would divide by 0)
*/
if (GetCreatureInfo()->attackpower)
if (GetCreatureInfo()->attack_power)
{
float databaseAttackPower = GetCreatureInfo()->attackpower;
float databaseAttackPower = GetCreatureInfo()->attack_power;
float attackPowerNow = GetTotalAttackPowerValue(attType);
weapon_mindamage = weapon_mindamage * (0.7f + 0.3f * attackPowerNow / databaseAttackPower);
weapon_maxdamage = weapon_maxdamage * (0.7f + 0.3f * attackPowerNow / databaseAttackPower);