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
+3
View File
@@ -73,6 +73,8 @@ if ($gencount >= $maxgeneral) {
]);
}
$genAux = Json::decode($db->queryFirstField('SELECT aux FROM general WHERE no = %i', $pick)??'{}');
$genAux['pickYearMonth'] = Util::joinYearMonth($year, $month);
//등록 시작
$db->update('general', [
'owner_name'=>$userNick,
@@ -81,6 +83,7 @@ $db->update('general', [
'defence_train'=>80,
'permission'=>'normal',
'owner'=>$userID,
'aux'=>Json::encode($genAux)
], 'owner <= 0 AND npc = 2 AND no = %i', $pick);
if(!$db->affectedRows()){