From 2eb136827d53e41b6681bafb7906d498e009cdba Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 28 Nov 2018 00:18:09 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9E=9C=EB=8D=A4=20=EC=9E=84=EA=B4=80?= =?UTF-8?q?=EC=9D=84=20=EB=8D=94=20=EA=B3=A0=EB=A5=B4=EA=B2=8C=20=ED=95=A9?= =?UTF-8?q?=EB=8B=88=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_process_personnel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/func_process_personnel.php b/hwe/func_process_personnel.php index 04924cb5..be920c54 100644 --- a/hwe/func_process_personnel.php +++ b/hwe/func_process_personnel.php @@ -156,11 +156,11 @@ function process_25(&$general) { } $score = 1; - if($admin['startyear']+3 > $admin['year'] && $general['npc'] > 2){ + if($admin['startyear']+3 > $admin['year'] && $general['npc'] == 2){ $score *= sqrt((100-max(30, $testNation['injury']))/100); } - $score *= sqrt($allGen/$generals[$testNation['nation']]); + $score *= $allGen/$generals[$testNation['nation']]; $randVals[$idx] = $score; }