Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release| Hit Simulator with Defense Calculation
#35
[spoiler=I'm a magician, so I only input this part]
Dusk Wrote:mob damage = random(0.8 ~ 0.85) * att^2/100

else: modifier = 2*str/5 + dex/7 + int/9 + luk/4

num = 0.28 + modifier/800

if defense>=PDD value: reduction = 0.7*(level/1300 + 8/9*num)*(def-PDD) + (num*def)

else:
-else: (13/(level-2))*(level/550 + num)*(def-PDD) + (num*def)


damage taken = mob damage - reduction

266 for mages
[/spoiler]
MissingLink Wrote:The values go up every 5 levels, which is why some notice that the damage they take jumps after they level up to level x0 or x5.
When def is exactly at 266, the amount of damage reduced, (bolded in the spoiler), is exactly the same. The reason for this is that when def = PDD, the first half goes to 0, so the damage reduced is just equal to (num*def). Running in numbers, I noticed that when def is lower than the PDD value, the first line comes out to be a negative value and the second line comes out to be a positive value. However, when def is greater than the PDD value, both lines are positive, though the first line gives slightly more than the second.

Anyways, after playing with numbers, the only way you can possibly experience a huge jump in Def is if the difference between PDD values is really large. It's only a slight jump. By slightly, I mean the difference is only about a miniscule 5%. You can hardly even see the reduction because normally in the game, you're taking thousands of damage at a time, and if the reduction is only 200 with the second formula and 210 with the first, you won't notice it at all.
I don't know about the other PDD values, but I'm pretty sure they won't cause a visible jump based on what I mentioned above.
MissingLink Wrote:They max at level 100.
It's a shame that they do. Def is already nerfed as it is. >_>
MissingLink Wrote:BY the way, Dusk's rewrite of Kortestanov's original code has some errors in it, so don't go by that version.
Dusk's rewrite seems correct when I ran numbers through it. If there's an error, could you please point it out to me?
MissingLink Wrote:Someone reposted it on SW.
Could you please link me? All I can find is Cyanne's reposting of Dusk's rewrite on SW.
Kortestanov Wrote:I think I'm gonna find some time soon and hack the magic damage\avoidability formulas too. I know where they are, I'm just too lazy to code them.
Please do. Glitter
Reply


Messages In This Thread
Release| Hit Simulator with Defense Calculation - by 2147483647 - 2009-11-12, 11:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)