game: 유산으로 입찰된 유니크는 랜덤 유니크로 얻을 수 없음
This commit is contained in:
@@ -1581,6 +1581,18 @@ function giveRandomUniqueItem(General $general, string $acquireType): bool
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach($db->queryAllLists('SELECT namespace, count(*) as cnt FROM `storage` WHERE namespace LIKE "ut_%" GROUP BY namespace') as [$uniqueNS, $cnt]){
|
||||||
|
$itemCode = substr($uniqueNS, 3);
|
||||||
|
$itemClass = buildItemClass($itemCode);
|
||||||
|
if (!$itemClass) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if ($itemClass->isBuyable()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$occupiedUnique[$itemCode] = ($occupiedUnique[$itemCode]??0) + $cnt;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (GameConst::$allItems as $itemType => $itemCategories) {
|
foreach (GameConst::$allItems as $itemType => $itemCategories) {
|
||||||
if (key_exists($itemType, $invalidItemType)) {
|
if (key_exists($itemType, $invalidItemType)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user