From 1548ef0aa3f54eb06d62eb109400b9d3a9b3dc73 Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 28 Aug 2018 20:36:46 +0900 Subject: [PATCH] =?UTF-8?q?'=EC=84=B1=EC=9D=B8=EC=9D=B4=20=EB=90=98?= =?UTF-8?q?=EC=96=B4=20=EB=93=B1=EC=9E=A5'=20=EC=8B=9C=20=EC=A0=84?= =?UTF-8?q?=EC=BD=98=EC=9D=B4=20=EC=95=88=EB=9C=A8=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Scenario/NPC.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hwe/sammo/Scenario/NPC.php b/hwe/sammo/Scenario/NPC.php index b8ff50f7..60bc67ac 100644 --- a/hwe/sammo/Scenario/NPC.php +++ b/hwe/sammo/Scenario/NPC.php @@ -90,6 +90,18 @@ class NPC{ public function build($env=[]){ //scenario에 life==1인 경우 수명 제한이 없어지는 모양. + if(!key_exists('stored_icons', $env)){ + try{ + $text = \file_get_contents(ServConfig::getSharedIconPath('../hook/list.json?1')); + $storedIcons = Json::decode($text); + } + catch(\Exception $e){ + $storedIcons = []; + } + + $env['stored_icons'] = $storedIcons; + } + $isFictionMode = (Util::array_get($env['fiction'], 0)!=0); $year = $env['year'];