From b8dfd1c0419fffef2a02f5de66d8bba21a0e5a12 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 22 Jul 2018 15:39:53 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=95,=EB=AA=A8=EB=B3=91=EC=8B=9C=20?= =?UTF-8?q?=EB=AF=BC=EC=8B=AC=EC=9D=B4=20=EB=96=A8=EC=96=B4=EC=A7=80?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_process.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hwe/func_process.php b/hwe/func_process.php index 3f9e220b..386dfacb 100644 --- a/hwe/func_process.php +++ b/hwe/func_process.php @@ -990,17 +990,17 @@ function process_11(&$general, $type) { $general['gold'] -= $cost; // 주민수 감소 // 민심 감소 if($type === '징병') { - $city['rate'] -= Util::round($crew / $city['pop']); + $city['rate'] -= Util::round(($crew / $city['pop'])*100); } else { - $city['rate'] -= Util::round($crew / 2 / $city['pop']); + $city['rate'] -= Util::round(($crew / 2 / $city['pop'])*100); } if($city['rate'] < 0) { $city['rate'] = 0; } $db->update('city', [ 'pop'=>$db->sqleval('pop-%i', $crew), 'rate'=>$city['rate'] - ], 'city = %i',$general['city']); + ], 'city = %i', $general['city']); // 통솔경험, 병종 변경, 병사수 변경, 훈련치 변경, 사기치 변경, 자금 군량 하락, 공헌도, 명성 상승 $general['leader2']++;