mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 04:37:02 +00:00
[7904] Change creature damage calculation formula.
* Add new creature_template field `dmg_multiplier` * Make attackpower include in creature damage not dependent from attack speed. NOTE: included in sql update recalculation for creature damage related fields only make temporary possible usable values. Real values need revisited by DB devs for correctness. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
0614a9eb75
commit
2fc277fdb6
7 changed files with 21 additions and 9 deletions
9
sql/updates/7904_01_mangos_creature_template.sql
Normal file
9
sql/updates/7904_01_mangos_creature_template.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_7902_02_mangos_pool_gameobject required_7904_01_mangos_creature_template bit;
|
||||
|
||||
ALTER TABLE creature_template
|
||||
ADD COLUMN dmg_multiplier float NOT NULL default '1' AFTER attackpower;
|
||||
|
||||
UPDATE creature_template SET mindmg = round(mindmg + attackpower / 14);
|
||||
UPDATE creature_template SET maxdmg = round(maxdmg + attackpower / 14);
|
||||
UPDATE creature_template SET attackpower = round((maxdmg + mindmg) * 0.3);
|
||||
UPDATE creature_template SET mindmg = round(mindmg * 0.7), maxdmg = round(maxdmg * 0.7);
|
||||
Loading…
Add table
Add a link
Reference in a new issue