From a9a830caa20da54cfacd5f70aeb868715121842f Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 24 Oct 2018 03:27:22 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=ED=83=80=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_server_basic_info.php | 17 ++++++++++++++++- js/entrance.js | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/hwe/j_server_basic_info.php b/hwe/j_server_basic_info.php index b65928ce..40a89e5f 100644 --- a/hwe/j_server_basic_info.php +++ b/hwe/j_server_basic_info.php @@ -32,6 +32,20 @@ if(file_exists(__dir__.'/.htaccess')){ $options = Json::decode($reserved['options']); + $otherTextInfo = []; + + if($options['join_mode'] == 'onlyRandom'){ + $otherTextInfo[] = '랜덤 임관 전용'; + } + + if(!$otherTextInfo){ + $otherTextInfo = '표준'; + } + else{ + $otherTextInfo = join(', ', $otherTextInfo); + } + + Json::die([ 'reserved'=>[ 'scenarioName'=>$options['scenarioName'], @@ -39,7 +53,8 @@ if(file_exists(__dir__.'/.htaccess')){ 'fictionMode'=>($options['fiction']?'가상':'사실'), 'npcMode'=>($options['npcmode']?'가능':'불가'), 'openDatetime'=>$reserved['date'], - 'gameConf'=>$options['gameConf'] + 'gameConf'=>$options['gameConf'], + 'otherTextInfo'=>$otherTextInfo ], 'game'=>null, 'me'=>null diff --git a/js/entrance.js b/js/entrance.js index edf266f9..7a369025 100644 --- a/js/entrance.js +++ b/js/entrance.js @@ -47,7 +47,7 @@ var serverReservedTemplate = "\ \ - 오픈 일시 : <%openDatetime%> -
\ <%scenarioName%> <%turnterm%>분 턴 서버
\ -(상성 설정:<%fictionMode%>), (빙의 여부:<%npcMode%>), (최대 스탯:<%gameConf.defaultStatTotal%>)\ +(상성 설정:<%fictionMode%>), (빙의 여부:<%npcMode%>), (최대 스탯:<%gameConf.defaultStatTotal%>), (기타 설정:<%otherTextInfo%>)\ "; $(function(){