game: 빙의장도 유산 획득이 가능하도록 수정

- 유산 실 반영 시점을 은퇴, 천통 시점으로 변경
This commit is contained in:
2021-12-09 00:26:47 +09:00
parent fc3b854add
commit 1727d34853
7 changed files with 65 additions and 13 deletions
+6 -2
View File
@@ -1028,7 +1028,9 @@ function checkEmperior()
$genObj->increaseInheritancePoint('unifier', 2000);
};
}
$genObj->mergeTotalInheritancePoint();
$genObj->mergeTotalInheritancePoint(true);
applyInheritanceUser($genObj->getID());
$genObj->clearInheritancePoint();
}
$gameStor->isunited = 2;
@@ -1182,8 +1184,10 @@ function checkEmperior()
LogHistory();
}
function resetInheritanceUser(int $userID, bool $isRebirth = false): float
function applyInheritanceUser(int $userID, bool $isRebirth = false): float
{
//FIXME: 은퇴, 사망, 천통 시점에 바로 반영한다면 여기가 아니라 general class로 이동하는 것이 옳음
//또한 굳이 merge, apply, clean 3단계를 거쳐야 할 이유도 없음
$rebirthDegraded = [
'dex' => 0.5,
];