From bfff1d9e2f5c756ddd3471b17e98d91ead9acd1f Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 24 Oct 2018 00:54:18 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9E=9C=EC=9E=84=20=EB=AA=A8=EB=93=9C=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_command.php | 4 ++-- hwe/func_process_personnel.php | 5 ++++- hwe/install.php | 4 ++-- hwe/j_install.php | 1 - hwe/js/install.js | 2 +- hwe/processing.php | 2 +- src/sammo/TimeUtil.php | 14 ++++++++++++++ 7 files changed, 24 insertions(+), 8 deletions(-) diff --git a/hwe/func_command.php b/hwe/func_command.php index f6f3be0a..0064cf43 100644 --- a/hwe/func_command.php +++ b/hwe/func_command.php @@ -106,10 +106,10 @@ function getTurn(array $general, $type, $font=1) { $double = $command[1]; if($double == 98){ - $nationName = '(랜덤국가)'; + $nationName = '건국된 임의 국가'; } else if($double == 99){ - $nationName = '[랜덤국가]'; + $nationName = '임의의 국가'; } else{ $nationName = getNationStaticInfo($double)['name']??'?!?!'; diff --git a/hwe/func_process_personnel.php b/hwe/func_process_personnel.php index bc21653b..d3e6e984 100644 --- a/hwe/func_process_personnel.php +++ b/hwe/func_process_personnel.php @@ -134,7 +134,7 @@ function process_25(&$general) { $allGen = array_sum($generals); $genLimit = GameConst::$defaultMaxGeneral; - if($admin['join_mode'] == 'onlyRandom' && $admin['init_year'] == $admin['year'] && $admin['init_month'] + 1 <= $admin['month']){ + if($admin['join_mode'] == 'onlyRandom' && $admin['init_year'] == $admin['year'] && in_array($admin['month'], [$admin['init_month'], ($admin['init_month'] + 1) %12])){ $genLimit = GameConst::$initialNationGenLimitForRandInit; } else if($admin['year'] < $admin['startyear'] + 3){ @@ -167,6 +167,9 @@ function process_25(&$general) { if($randVals){ $nation = $nations[Util::choiceRandomUsingWeight($randVals)]; } + else{ + $nation = null; + } } else { $nation = $db->queryFirstRow('SELECT `name`,nation,scout,`level` FROM nation WHERE nation=%i', $where); diff --git a/hwe/install.php b/hwe/install.php index 82ea81e4..4fcc5d39 100644 --- a/hwe/install.php +++ b/hwe/install.php @@ -159,8 +159,8 @@ if($session->userGrade < 5 && !$allowReset){ -