diff options
author | megamage <none@none> | 2009-09-02 18:11:11 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-09-02 18:11:11 -0500 |
commit | 9d161ff757daf47335f7cc84825463cc30818c8c (patch) | |
tree | 2699fefb968d8628c3db688fe23527dedd3b9d9f /src/game/StatSystem.cpp | |
parent | b8d1a0cd1794caab60d5815652355945de4586b3 (diff) |
[8449] Deprecate healing/damage item mods and merge internal data in to spell power. Author: VladimirMangos
* Report at loading about deprecated ITEM_MOD_SPELL_HEALING_DONE and ITEM_MOD_SPELL_DAMAGE_DONE
and drop support code.
* Merge healing/damage base spell bonus fields and function to spell power field/function.
--HG--
branch : trunk
Diffstat (limited to 'src/game/StatSystem.cpp')
-rw-r--r-- | src/game/StatSystem.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp index 2b147c5150a..d991a96ebe6 100644 --- a/src/game/StatSystem.cpp +++ b/src/game/StatSystem.cpp @@ -110,19 +110,14 @@ bool Player::UpdateStats(Stats stat) return true; } -void Player::ApplySpellDamageBonus(int32 amount, bool apply) +void Player::ApplySpellPowerBonus(int32 amount, bool apply) { - m_baseSpellDamage+=apply?amount:-amount; - // For speed just update for client - for(int i = SPELL_SCHOOL_HOLY; i < MAX_SPELL_SCHOOL; i++) - ApplyModUInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+i, amount, apply); -} + m_baseSpellPower+=apply?amount:-amount; -void Player::ApplySpellHealingBonus(int32 amount, bool apply) -{ - m_baseSpellHealing+=apply?amount:-amount; // For speed just update for client ApplyModUInt32Value(PLAYER_FIELD_MOD_HEALING_DONE_POS, amount, apply); + for(int i = SPELL_SCHOOL_HOLY; i < MAX_SPELL_SCHOOL; ++i) + ApplyModUInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+i, amount, apply);; } void Player::UpdateSpellDamageAndHealingBonus() |