Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Patch-Submissions (http://mangos.ytdb.ru/forumdisplay.php?f=65)
-   -   Made formula for rage generation at damage dealing proper accordly to level 80 calculations (http://mangos.ytdb.ru/showthread.php?t=6349)

alexluana 19.10.2012 00:45

Made formula for rage generation at damage dealing proper accordly to level 80 calculations
 
Код:

diff --git "a/C:\\Users\\Axxl\\AppData\\Local\\Temp\\Pla2C0.tmp\\Player-91c2376-left.cpp" "b/E:\\Wow Git Sources\\Wotlk\\cmangos\\src\\game\\Player.cpp"
index 9bdcc79..369a4ed 100644
--- "a/C:\\Users\\Axxl\\AppData\\Local\\Temp\\Pla2C0.tmp\\Player-91c2376-left.cpp"
+++ "b/E:\\Wow Git Sources\\Wotlk\\cmangos\\src\\game\\Player.cpp"       
@@ -1968,6 +1968,10 @@ void Player::RewardRage(uint32 damage, uint32 weaponSpeedHitFactor, bool attacke
 
    float rageconversion = float((0.0091107836 * getLevel() * getLevel()) + 3.225598133 * getLevel()) + 4.2652911f;
 
+    // Rage calculation mismatch (based on wowwiki and other pages calculation)
+    if(getLevel() == 80)
+        rageconversion = 453.3f;
+       
    if (attacker)
    {
        addRage = ((damage / rageconversion * 7.5f + weaponSpeedHitFactor) / 2.0f);

Credits: Feanordev

alexluana 22.10.2012 00:38

before commiting this ... I need someone to confirm it...
I am not sure about this at all... but from what I know is correct...but I may be wrong..

than is why a second confirmation would be good

Amaru 22.10.2012 10:26

Credits: trinity hack XD

alexluana 22.10.2012 10:57

well, this is not from trinity at all

hack maybe :D... a better solution IF this is the right patch would be good... I am very unskilled in C


Текущее время: 22:59. Часовой пояс GMT +3.

ru-mangos.ru - Русское сообщество MaNGOS