2013-03-19, 03:21 AM
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.

