Calculating Bonus Damage
I am trying to determine the formula for calculating bonus damage on all weapons.
I have looked through the code and the only thing I can find is this code below. However say when I use "A Weighted Axe" with a delay of 150 and a character level of 50 the calculation works according to lucy. Now the problem is if I change the level of the character to 60 it does not calculate out right. This is the information I get when I use this formula to calculate out the following levels. (The formula I used rounded down all fractions) LEVEL || Bonus Dmg 50 || 52 53 || 54 55 || 56 60 || 58 Example: A Weighted Axe for a lvl 50 character (0 + (((50 - 25) / 3) + 1) + ((50 - 27) / 4) + ((150 - 34) / 3)) = 52 Example: A Weighted Axe for a lvl 60 character (0 + (((60 - 25) / 3) + 1) + ((60 - 27) / 4) + ((150 - 34) / 3)) = 58 Is the EMU Server just using there own formula of calculating the bonus damage of a weapon or am I not doing something right? Any information is greatly appreciated. Code:
int Mob::GetWeaponDamageBonus(const Item_Struct* Weapon) |
I have inline question on the subject as well.
does dmg bonsu of a weapon is been added to the base dmg of the weapon (so a dmg 10 weapon with dmg bonsu of 2 becomes 12 dmg base weapon) or does the dmg added to the final strike? (10 dmg weapon say produced 14 dmg and 2 added at the end)? if its the 2nd way the dmg bonus not realy adding all that much dmg... (you prabobly hiting for 1200+ with 50 dmg weapon around lev 75 so say +25 dmg bonus to 1200 dmg delivered hardly noticeable) |
That above is basically the code. It's added on top of the calculated hit not as part of base damage. People have been pestering me to fix it but I really haven't been able to figure out a formula that works; there's so variable I'm missing.
It's only about 50% accurate right now on most weapons, so I think people are kind of deluding themselves into thinking it will fix all 2h weapon's problems. It would certainly help if it worked right though. |
So the client actually views the weapon as the correct Bonus Damage but its only for a reference. If I can determine the correct formula I will post it.
Thanks for the quick reply. |
All times are GMT -4. The time now is 12:19 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.