From 869ee4b23352a1796296299258813aba90bec85c Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 11 Apr 2018 19:54:25 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A0=88=EB=B2=A8=EC=9D=B4=20300=EC=9D=B4=20?= =?UTF-8?q?=EB=90=98=EB=A9=B4=20=EC=A0=84=ED=88=AC=EC=97=94=EC=A7=84?= =?UTF-8?q?=EC=9D=B4=20=ED=84=B0=EC=A7=80=EB=8A=94=20=EB=AC=B8=EC=A0=9C=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 --- hwe/process_war.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hwe/process_war.php b/hwe/process_war.php index 4bd766b8..6f0a1bcf 100644 --- a/hwe/process_war.php +++ b/hwe/process_war.php @@ -1029,10 +1029,10 @@ function processWar($general, $city) { } //레벨 보정 - $myCrew = $myCrew * ((100 - $general['explevel']/3)/100); - $opCrew = $opCrew / ((100 - $general['explevel']/3)/100); - $myCrew = $myCrew / ((100 - $oppose['explevel']/3)/100); - $opCrew = $opCrew * ((100 - $oppose['explevel']/3)/100); + $myCrew = $myCrew * (max(1, 100 - $general['explevel']/3)/100); + $opCrew = $opCrew / (max(1, 100 - $general['explevel']/3)/100); + $myCrew = $myCrew / (max(1, 100 - $oppose['explevel']/3)/100); + $opCrew = $opCrew * (max(1, 100 - $oppose['explevel']/3)/100); // 특기보정 : 기병, 돌격, 무쌍, 보병, 견고, 척사, 의술(청낭서, 태평청령) if($general['special2'] == 52) { $opCrew *= 1.20; }