what is the actual formula? this doesn't make sense:
public static function getDamageProbability($item, $str, $dex) { if ($item->getReqDex() === null || $item->getReqStr() >= $item->getReqDex()) { $difference = $str - $item->getReqStr(); } else if ($item->getReqStr() === null || $item->getReqDex() > $item->getReqStr()) { $difference = $dex - $item->getReqDex(); }
if ($difference > 0) { return min(0.25, max(0.025, 1 / (10 + $difference))); } else { return min(0.25, max(0.025, 0.1 + $difference * -0.0025)); }
}