이미지 주소 기반 자동 NPC 전콘 설정 기능 추가. 루드라사움 추가
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user