리셋 시 최대 스탯 보여주도록 변경
This commit is contained in:
+2
-1
@@ -78,7 +78,8 @@ if($reserve_open){
|
||||
'extend'=>$extend,
|
||||
'npcmode'=>$npcmode,
|
||||
'show_img_level'=>$show_img_level,
|
||||
'tournament_trig'=>$tournament_trig
|
||||
'tournament_trig'=>$tournament_trig,
|
||||
'gameConf'=>$scenarioObj->getGameConf()
|
||||
]),
|
||||
'date'=>$reserve_open->format('Y-m-d H:i:s')
|
||||
]);
|
||||
|
||||
@@ -38,7 +38,8 @@ if(file_exists(__dir__.'/.htaccess')){
|
||||
'turnterm'=>$options['turnterm'],
|
||||
'fictionMode'=>($options['fiction']?'가상':'사실'),
|
||||
'npcMode'=>($options['npcmode']?'가능':'불가'),
|
||||
'openDatetime'=>$reserved['date']
|
||||
'openDatetime'=>$reserved['date'],
|
||||
'gameConf'=>$options['gameConf']
|
||||
],
|
||||
'game'=>null,
|
||||
'me'=>null
|
||||
|
||||
@@ -27,6 +27,8 @@ class Scenario{
|
||||
|
||||
private $initOK = false;
|
||||
|
||||
private $gameConf = null;
|
||||
|
||||
private function initFull(){
|
||||
if($this->initOK){
|
||||
return;
|
||||
@@ -148,7 +150,10 @@ class Scenario{
|
||||
}, Util::array_get($data['events'], []));
|
||||
}
|
||||
|
||||
private function getGameConf(){
|
||||
public function getGameConf(){
|
||||
if($this->gameConf){
|
||||
return $this->gameConf;
|
||||
}
|
||||
$defaultPath = self::SCENARIO_PATH."/default.json";
|
||||
if(!file_exists($defaultPath)){
|
||||
throw new \RuntimeException('기본 시나리오 설정 파일 없음!');
|
||||
@@ -164,6 +169,7 @@ class Scenario{
|
||||
];
|
||||
|
||||
$this->gameConf = array_merge($stat);
|
||||
return $this->gameConf;
|
||||
}
|
||||
|
||||
public function __construct(int $scenarioIdx, bool $lazyInit = true){
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ var serverReservedTemplate = "\
|
||||
<td colspan='4' class='server_reserved'>\
|
||||
- 오픈 일시 : <%openDatetime%> - <br>\
|
||||
<span style='color:orange;'><%scenarioName%></span> <span style='color:limegreen;'><%turnterm%>분 턴 서버</span><br>\
|
||||
(상성 설정:<%fictionMode%>), (빙의 여부:<%npcMode%>)</td>\
|
||||
(상성 설정:<%fictionMode%>), (빙의 여부:<%npcMode%>), (최대 스탯:<%gameConf.statTotal%>)</td>\
|
||||
";
|
||||
|
||||
$(function(){
|
||||
|
||||
Reference in New Issue
Block a user