feat: 유산포인트로 장수 소유자 확인

This commit is contained in:
2024-06-08 18:42:39 +00:00
parent 86305087f7
commit b6f19fa38b
5 changed files with 258 additions and 73 deletions
+6 -1
View File
@@ -16,7 +16,10 @@ $gameStor = KVStorage::getStorage($db, 'game_env');
$me = General::createObjFromDB($generalID);
$availableTargetGeneral = [];
foreach ($db->query('SELECT no, name FROM general WHERE npc < 2') as $row) {
$availableTargetGeneral[$row['no']] = $row['name'];
}
$currentInheritBuff = [];
foreach ($me->getAuxVar('inheritBuff') ?? [] as $buff => $buffLevel) {
@@ -95,10 +98,12 @@ $lastInheritPointLogs = $db->query('SELECT id, server_id, year, month, date, tex
'randomUnique' => GameConst::$inheritItemRandomPoint,
'nextSpecial' => GameConst::$inheritSpecificSpecialPoint,
'minSpecificUnique' => GameConst::$inheritItemUniqueMinPoint,
'checkOwner' => GameConst::$inheritCheckOwnerPoint,
],
'availableSpecialWar' => $avilableSpecialWar,
'availableUnique' => $availableUnique,
'lastInheritPointLogs' => $lastInheritPointLogs,
'availableTargetGeneral' => $availableTargetGeneral,
]
]) ?>
</head>