Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Boss Damage Vs. Ignore Defense Rate.
#11
Locked Wrote:It isn't impossible, really.

Assuming "ignoreDEF" is an array of values, you can calculate it like so.

Code:
float physicalDEF() {
        float k = 1.0f;
        if(ignoreDEF.empty())
            return mobPDR;
        else {
            for(auto& i : ignoreDEF) //for every value in your ignoreDEF array.
                k *= (i/100); // k *= (i/100) is equivalent to k = k * (i/100) where i is the current value in ignoreDEF array.
            return mobPDR*k; //mobPDR * k is your physical DEF attribute.
        }
    }

i'll repeat myself, i know zilch about coding. i know it's not impossible to calculate, but it's impossible to make a picture of "you have this much %ignore, boss has this much %def left" that works for everyone, i'd have to make something on excel that calculates it and then pass that file around, instead of just a picture like i do now.
Reply


Messages In This Thread
Boss Damage Vs. Ignore Defense Rate. - by VerrKol - 2013-03-18, 11:21 PM
Boss Damage Vs. Ignore Defense Rate. - by Even - 2013-03-19, 12:25 AM
Boss Damage Vs. Ignore Defense Rate. - by Arrol - 2013-03-19, 01:24 AM
Boss Damage Vs. Ignore Defense Rate. - by Locked - 2013-03-19, 02:55 AM
Boss Damage Vs. Ignore Defense Rate. - by ShinkuDragon - 2013-03-19, 03:21 AM
Boss Damage Vs. Ignore Defense Rate. - by hadriel - 2013-03-19, 10:48 AM
Boss Damage Vs. Ignore Defense Rate. - by Locked - 2013-03-19, 03:25 PM
Boss Damage Vs. Ignore Defense Rate. - by Stereo - 2013-03-19, 03:28 PM
Boss Damage Vs. Ignore Defense Rate. - by JoeTang - 2013-03-19, 04:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)