상성 가상인 경우 상성이 리셋되지 않는 버그 해결

This commit is contained in:
2018-04-28 01:08:54 +09:00
parent c86ac7d20f
commit 161836a233
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -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,