Advertisement

Armor calculations

Started by November 16, 2013 12:36 PM
0 comments, last by wintertime 11 years, 1 month ago

I'm wondering how I can do an armor calculation that:

1) The armor value is a solid number like 1000

2) The players level is taken into account

3) I get to a % that I can reduce the damage by

So if the player is level 1 and has 1000 armor let's say they reduce the damage by 25%, but if the player is level 10 and still only has 1000 armor points the damage is only reduced by 15% or something like that. I'll cap a % to a certain value no matter what level, but just wondering if anyone knows of a formula that does the above requirement?

Isn't that as easy as making up something like reduction% := 100% * (armor/maxarmor) / (level/maxlevel + balancing value) ?

This topic is closed to new replies.

Advertisement