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){
-