Hotfix for boots :)
Some checks failed
pipeline / build-and-push-images (push) Failing after 1m29s
pipeline / deploy (push) Has been skipped

This commit is contained in:
2025-01-14 00:59:12 +01:00
parent 37e49109f6
commit 5d024f4da9

View File

@@ -119,9 +119,16 @@ function handleMatchItems(timeline, participant: any, participantIndex : number,
}
if(event.type != "ITEM_PURCHASED") continue;
// Handle boots upgrades
if(itemInfo.requiredBuffCurrencyName == "Feats_NoxianBootPurchaseBuff"
|| itemInfo.requiredBuffCurrencyName == "Feats_SpecialQuestBootBuff") {
itemInfo.categories.push("Boots");
event.itemId = itemInfo.from[0]
}
// Handle boots differently
if(itemInfo.categories.includes("Boots")){
if(itemInfo.to.length == 0 || event.itemId == 3006) {
if(itemInfo.to.length == 0 || (itemInfo.to[0] >= 3171 && itemInfo.to[0] <= 3176)) {
// Check for bootsFirst
if(items.length < 2) {
builds.bootsFirst += 1