npc 생성시 전콘이 있는지 확인하는 코드 추가. 걸그룹 대전 변경

This commit is contained in:
2018-06-16 11:01:12 +09:00
parent 2ac1d82826
commit 124036cea6
2 changed files with 7 additions and 3 deletions
+6 -3
View File
@@ -150,13 +150,16 @@ class NPC{
} }
else if(is_numeric($picturePath)){ else if(is_numeric($picturePath)){
if($picturePath < 0){ if($picturePath < 0){
$picturePath = 'default.jpg'; $picturePath = null;
}
else if(\key_exists($picturePath, $env['stored_icons']['.']??[])){
$picturePath = $env['stored_icons']['.'][$picturePath];
} }
else{ 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; $picturePath = ($env['icon_path']??'.').'/'.$picturePath;
} }
else if($picturePath === null && \key_exists('stored_icons', $env)){ else if($picturePath === null && \key_exists('stored_icons', $env)){
+1
View File
@@ -6,6 +6,7 @@
], ],
"diplomacy":[ "diplomacy":[
], ],
"iconPath": "걸그룹",
"stat":{ "stat":{
"total":220, "total":220,
"min":40, "min":40,