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],