이미지 주소 기반 자동 NPC 전콘 설정 기능 추가. 루드라사움 추가

This commit is contained in:
2018-06-15 03:32:37 +09:00
parent 735427ead0
commit fa4e0c1948
5 changed files with 626 additions and 1 deletions
+17
View File
@@ -7,6 +7,7 @@ class Scenario{
private $scenarioIdx;
private $scenarioPath;
private $iconPath = '.';
private $data;
private $year;
@@ -189,6 +190,7 @@ class Scenario{
];
$this->gameConf = array_merge($stat);
$this->iconPath = $this->data['iconPath']??$default['iconPath'];
return $this->gameConf;
}
@@ -226,6 +228,10 @@ class Scenario{
return $this->title;
}
public function getIconPath(){
return $this->iconPath;
}
public function getNPC(){
$this->initFull();
return $this->generals;
@@ -286,6 +292,17 @@ class Scenario{
private function buildGenerals($env){
$this->initFull();
try{
$text = \file_get_contents(ServConfig::getSharedIconPath('../hook/list.json?1'));
$storedIcons = Json::decode($text);
}
catch(\Exception $e){
$storedIcons = [];
}
$env['stored_icons'] = $storedIcons;
$remainGenerals = [];
foreach($this->generals as $general){
if($general->build($env)){