From b5d69674ce3ee37870d6690db247bc410f8a7a31 Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 1 Feb 2018 00:00:55 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=ED=8B=B0=EC=BB=AC=20?= =?UTF-8?q?=ED=99=95=EB=A5=A0=20=ED=95=A8=EC=88=98=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- che_close/process_war.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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;