diff --git a/che_close/process_war.php b/che_close/process_war.php index 79f6f63..986e764 100644 --- a/che_close/process_war.php +++ b/che_close/process_war.php @@ -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;