From 161836a2335cf941a2a45059a5b75396cc010efa Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 28 Apr 2018 01:08:54 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=81=EC=84=B1=20=EA=B0=80=EC=83=81?= =?UTF-8?q?=EC=9D=B8=20=EA=B2=BD=EC=9A=B0=20=EC=83=81=EC=84=B1=EC=9D=B4=20?= =?UTF-8?q?=EB=A6=AC=EC=85=8B=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=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 | 7 ++++++- hwe/scenario/scenario_30.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/Scenario/NPC.php b/hwe/sammo/Scenario/NPC.php index 0ef471e5..84bc208b 100644 --- a/hwe/sammo/Scenario/NPC.php +++ b/hwe/sammo/Scenario/NPC.php @@ -70,6 +70,11 @@ class NPC{ $nationID = 0; }; + $affinity = $this->affinity; + if(Util::array_get($env['fiction'],false) || $affinity === 0){ + $affinity = mt_rand(1, 150); + } + $year = $env['year']; $month = $env['month']; $age = $year - $this->birth; @@ -137,7 +142,7 @@ class NPC{ 'npcid'=>$npcID, 'npc'=>2, 'npc_org'=>2, - 'affinity'=>$this->affinity, + 'affinity'=>$affinity, 'name'=>$name, 'picture'=>$picture, 'nation'=>$nationID, diff --git a/hwe/scenario/scenario_30.json b/hwe/scenario/scenario_30.json index fe916676..28ce7e70 100644 --- a/hwe/scenario/scenario_30.json +++ b/hwe/scenario/scenario_30.json @@ -124,7 +124,7 @@ [54, "김기태", -1, 0, null, 86, 90, 76, 0, 160, 300, "패권", null], [67, "이승호", -1, 0, null, 71, 80, 53, 0, 160, 300, "할거", null], [69, "김광현", -1, 0, null, 84, 90, 86, 0, 160, 300, "정복", null, "제가 현진이형보단 낫죠"], -[0, "박정배", -1, 0, null, 62, 63, 67, 0, 160, 300, "정복", null], +[150, "박정배", -1, 0, null, 62, 63, 67, 0, 160, 300, "정복", null], [94, "채병용", -1, 0, null, 68, 77, 79, 0, 160, 300, "의협", null], [101, "윤희상", -1, 0, null, 56, 58, 67, 0, 160, 300, "대의", null], [73, "이재원", -1, 0, null, 83, 67, 10, 0, 160, 300, "출세", null],