forked from devsam/core
npc 생성시 전콘이 있는지 확인하는 코드 추가. 걸그룹 대전 변경
This commit is contained in:
@@ -150,13 +150,16 @@ class NPC{
|
||||
}
|
||||
else if(is_numeric($picturePath)){
|
||||
if($picturePath < 0){
|
||||
$picturePath = 'default.jpg';
|
||||
$picturePath = null;
|
||||
}
|
||||
else if(\key_exists($picturePath, $env['stored_icons']['.']??[])){
|
||||
$picturePath = $env['stored_icons']['.'][$picturePath];
|
||||
}
|
||||
else{
|
||||
$picturePath = "{$picturePath}.jpg";
|
||||
$picturePath = null;
|
||||
}
|
||||
}
|
||||
else if($picturePath !== null){
|
||||
else if($picturePath !== null && in_array($picturePath, $env['stored_icons'][$env['icon_path']??'.']??[])){
|
||||
$picturePath = ($env['icon_path']??'.').'/'.$picturePath;
|
||||
}
|
||||
else if($picturePath === null && \key_exists('stored_icons', $env)){
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
],
|
||||
"diplomacy":[
|
||||
],
|
||||
"iconPath": "걸그룹",
|
||||
"stat":{
|
||||
"total":220,
|
||||
"min":40,
|
||||
|
||||
Reference in New Issue
Block a user