From c437f4e2c149fe1063d3d08e5f410914ca8fd0cb Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 22 Aug 2018 15:22:20 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=BC=EC=8B=AC=20=EA=B9=8E=EC=9D=B4?= =?UTF-8?q?=EB=8A=94=20=EB=A1=9C=EA=B7=B8=EC=97=90=20=EB=B0=98=EC=98=AC?= =?UTF-8?q?=EB=A6=BC=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_process_sabotage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hwe/func_process_sabotage.php b/hwe/func_process_sabotage.php index 2b4fec2c..8d6c4003 100644 --- a/hwe/func_process_sabotage.php +++ b/hwe/func_process_sabotage.php @@ -668,7 +668,11 @@ function process_35(&$general) { // 선동 최대 10 $secuAmount = Util::valueFit(Util::randRangeInt(GameConst::$sabotageDamageMin, GameConst::$sabotageDamageMax), null, $destCity['secu']); - $rateAmount = Util::valueFit(Util::randRangeInt(GameConst::$sabotageDamageMin, GameConst::$sabotageDamageMax) / 50, null, $destCity['rate']); + $rateAmount = Util::valueFit( + Util::round(Util::randRangeInt(GameConst::$sabotageDamageMin, GameConst::$sabotageDamageMax) / 50), + null, + $destCity['rate'] + ); $destCity['secu'] -= $secuAmount; $destCity['rate'] -= $rateAmount;