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']);