From 3e4995ae84dc0dedda3107c2f19c63fbc6a8210c Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 13 Jun 2018 02:51:39 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EA=B4=80=20=EC=8B=9C=EB=8F=84=20?= =?UTF-8?q?=ED=99=95=EB=A5=A0=20=EB=B3=80=EA=B2=BD,=20NPC=20=EB=9E=9C?= =?UTF-8?q?=EC=9E=84=EC=8B=9C=20=EB=B6=80=EC=83=81=20=ED=8C=A8=EB=84=90?= =?UTF-8?q?=ED=8B=B0=20=EC=95=BD=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 2 +- hwe/func_process_personnel.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index e0184daa..412ff536 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -321,7 +321,7 @@ function processAI($no) { MYDB_query($query, $connect) or Error("processAI07 ".MYDB_error($connect),""); return; } elseif($general['npc'] < 5 && $general['level'] == 0) { - switch(Util::choiceRandomUsingWeight([10, 40, 20, 30])) { + switch(Util::choiceRandomUsingWeight([13, 40, 20, 27])) { //임관 10% case 0: diff --git a/hwe/func_process_personnel.php b/hwe/func_process_personnel.php index 5bb7f075..ef3bf04a 100644 --- a/hwe/func_process_personnel.php +++ b/hwe/func_process_personnel.php @@ -136,7 +136,7 @@ function process_25(&$general) { $score = 1; if($admin['startyear']+3 > $admin['year'] && $general['npc'] > 2){ - $score *= sqrt((100-$testNation['injury'])/100); + $score *= sqrt((100-max(30, $testNation['injury']))/100); } $score *= sqrt($allGen/$testNation['gennum']);