이미지 주소 기반 자동 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 -1
View File
@@ -145,7 +145,7 @@ class NPC{
$name = 'ⓝ'.$this->name;
$picturePath = $this->picturePath;
if($env['show_img_level'] < 3 || $picturePath === null){
if($env['show_img_level'] < 3){
$picturePath = 'default.jpg';
}
else if(is_numeric($picturePath)){
@@ -156,6 +156,22 @@ class NPC{
$picturePath = "{$picturePath}.jpg";
}
}
else if($picturePath !== null){
$picturePath = ($env['icon_path']??'.').'/'.$picturePath;
}
else if($picturePath === null && \key_exists('stored_icons', $env)){
$target = $env['stored_icons']??[];
$target = $target[$env['icon_path']??'.']??[];
$picturePath = $target[$this->name]??null;
if($picturePath){
$picturePath = ($env['icon_path']??'.').'/'.$picturePath;
}
}
if($picturePath === null){
$picturePath = 'default.jpg';
}
$city = $this->locatedCity;
if($city === null){