크리티컬 확률 함수 버그 수정.

This commit is contained in:
2018-02-01 00:00:55 +09:00
parent 5a8b647045
commit b5d69674ce
+5 -6
View File
@@ -1453,7 +1453,7 @@ function CriticalRatio2($leader, $power, $intel) {
function CriticalRatio3($leader, $power, $intel, $crewtype) {
// 무장 무력 : 65 5%, 70 10%, 75 15%, 80 20%
// 지장 지력 : 65 5%, 70 8%, 75 10%, 80 13%
//충차장 통솔: 65 5%, 70 10%, 75 15%, 80 20%
//충차장 통솔: 65 5%, 70 8%, 75 10%, 80 13%
$crewtype = floor($crwtype/10);
@@ -1463,19 +1463,18 @@ function CriticalRatio3($leader, $power, $intel, $crewtype) {
else if($crewtype == 4){ //병기
$mainstat = $leader;
}
else{
else{ //무장
$mainstat = $power;
}
$mainstat = 0;
$ratio = max($mainstat - 65, 0);
if (floor($crewtype/10) == 3) {
$ratio / 2;
if ($crewtype >= 3) {
$ratio /= 2;
}
$ratio = round($ratio);
$ratio += 5;
$ratio = round($ratio);
if($ratio > 50) $ratio = 50;