- Aug 10, 2017
- 392
- 577
The FLC function is defined as follows:Ah.. I had a brain fart there about the counter.
I still wonder what is better for DPS though. I'm still unsure if dimension slash is changed since VBF days where it gave a flat 75% defense cut. 2 attack and 100 max power should come out to be 6x damage. Helmet split + Lethal title is too complicated for me to calculate lol.
Code:
function _FLC(c,v,l)
{
if(l){
if(c>v)c=v;
}else{
if(c<v)c=v;
}
return int c;
}
Code:
if(wf.offense.次元斬撃 > 0){
DEF-=DEF*_FLC(wf.offense.次元斬撃,75,1)/100;dm(" 次元斬撃(%3d).def=%f".sprintf(wf.offense.次元斬撃,DEF));
}
Dimension Slash says it grants Helmet Split, but this is a blatant mistranslation. It grants an identical effect to Helmet Split, but stacks with it. This was the case in previous VenusBlood titles as well, except now it scales instead of granting a flat reduction.
See this post for the full formula. This damage function is called in a different code block to check for criticals, apply Max-Power Attack, the Wraith modifier, etc., but final damage numbers use this as a base.