DPS calculation

Diablo 1 HD, codename Belzebub - General forum.
Post Reply
Nomic
Posts: 42
Joined: 15 Apr, 2014 0:03

DPS calculation

Post by Nomic »

Brightlord - I see that you previously posted a code snippet that shows how damage reduction is calculated, that was awesome of you!

Could you post some or all of the code that shows how character DPS is calculated?
I've been tinkering around with strength/dex trying to figure out how they influence critical strike and overall DPS and I've got a good idea but since you don't seem shy about showing your code could you post the actual game code? It would answer a ton of questions that have been floating around the forums.
riesa
Posts: 415
Joined: 21 Feb, 2014 13:15

Post by riesa »

I JUST THINK that it takes average of all your damage sources. Physical damage, elemental damage and maybe CTC spells. Then this is multiplied by attacks per second and after that crits are involved. And yes, I'm sure that crits are involved into DPS counter. I just can't figure how this math calculation should be to involve chance to ctrits and crits damage ;p
Nomic
Posts: 42
Joined: 15 Apr, 2014 0:03

Post by Nomic »

Yes, this is exactly what I mean. I have been able to get a pretty good idea how it all works...str giving CD and dex giving CC, how each add to physical damage (roughly 5 : 1 damage at my current level) etc.

There are a few things I can't quite work out like how critical damage is affected by level
(Try leveling a new character a few levels and watch your critical damage drop by 1% every 2 levels...)

I just want to know how it all works.
What I'm looking for is exactly how your critical hit chance and critical hit damage are calculated, and the actual formula used to calculate the DPS number.
It would also be nice to know exactly how str/dex contribute to your physical damage dealt as well, it seems like clvl also factors into this since at early levels the 5:1 doesn't seem to apply

It would also be nice to know exactly what the "attack time" means...is it based on "turns" like the old Diablo was? It seems like dividing the number by 100 gives the number of frames/attack and if you run at 60fps its easy to find your attack/second but I'm not 100% on this either... I just want to know the math!

I'm trying to create a multivariable function and use a bit of calculus to min/max it.
angra
Posts: 12
Joined: 31 Mar, 2014 13:38

Post by angra »

From my tests damage is (STR+DEX)*CLVL/200. And unlike TH and original diablo damage formula is same for all chars and weapons.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 32 guests