Better late game items (fix #6) :)
All checks were successful
pipeline / build-and-push-images (push) Successful in 33s
pipeline / deploy (push) Successful in 7s

This commit is contained in:
2024-12-07 16:09:49 +01:00
parent 42da27e544
commit b7f37898bd
2 changed files with 13 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ function handleMatchItems(timeline, participant: any, participantIndex : number,
}
// Late game items
for(let item of items.slice(4)) {
for(let item of items.slice(3)) {
const already = builds.lateGame.find((x) => x.data == item)
if(already == undefined) builds.lateGame.push({count:1, data:item})
else already.count += 1