From 355b6c2e7d186c674ffa18ff6f7bbab680135486 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 9 Mar 2019 16:23:47 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B8=ED=83=90=20=ED=99=95=EB=A5=A0=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_process_personnel.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hwe/func_process_personnel.php b/hwe/func_process_personnel.php index 17a39c80..e8eb7b28 100644 --- a/hwe/func_process_personnel.php +++ b/hwe/func_process_personnel.php @@ -318,11 +318,15 @@ function process_29(&$general) { $curr_cnt = Util::toInt($total_gen_cnt + $total_npc_cnt / 2); $remain_slot = $max_gen_cnt - $curr_cnt; - if($total_npc_cnt < 20 && $nation['scout'] == 0 && $npc_cnt < 2){ - $found_prop = 1 / ($npc_cnt + 1); + $found_prop_main = pow($remain_slot / $max_gen_cnt, 6); + $found_prop_small = 1 / ($total_npc_cnt / 3 + 1); + $found_prop_big = 1 / $max_gen_cnt; + + if($total_npc_cnt < 30){ + $found_prop = max($found_prop_main, $found_prop_small); } else{ - $found_prop = max(pow($remain_slot / $max_gen_cnt, 5), 1 / $max_gen_cnt); + $found_prop = max($found_prop_main, $found_prop_big); } $found_npc = Util::randBool($found_prop);