fix/match_collector: fix boots handling
All checks were successful
pipeline / lint-and-format (push) Successful in 4m51s
pipeline / build-and-push-images (push) Successful in 54s

This commit is contained in:
2026-05-04 13:57:03 +02:00
parent ee32060a7f
commit b2178fec85

View File

@@ -219,17 +219,10 @@ function handleMatchBuilds(
}
if (event.type != 'ITEM_PURCHASED') continue
// Handle boots upgrades
if (
itemInfo.requiredBuffCurrencyName == 'Feats_NoxianBootPurchaseBuff' ||
itemInfo.requiredBuffCurrencyName == 'Feats_SpecialQuestBootBuff'
) {
continue
}
// Handle boots differently
if (itemInfo.categories.includes('Boots')) {
if (itemInfo.to.length == 0 || (itemInfo.to[0] >= 3171 && itemInfo.to[0] <= 3176)) {
// Ignore basic boots, only count Tier 2 boots
if (event.itemId != 1001) {
// Check for bootsFirst
if (items.length < 2) {
build.bootsFirstCount += 1