Skip to content

Commit

Permalink
break the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
RayDeeUx committed Oct 16, 2023
1 parent 6b002d3 commit 7500d24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ class VisitorLogbookStats {
"SPECIAL" -> 4
else -> 5
}
val lineTimesVisited = noPlcwList.find{ it.contains("Times Visited: ") } ?: return
val lineOffersAccepted = noPlcwList.find{ it.contains("Offers Accepted: ") } ?: return
val lineTimesVisited = noPlcwList.find{ it.contains("Times Visited: ") } ?: break
val lineOffersAccepted = noPlcwList.find{ it.contains("Offers Accepted: ") } ?: break
seenStats[rarityIndex] += lineTimesVisited.split(" ").last().replace(",", "").replace(".", "").toInt()
acceptedStats[rarityIndex] += lineOffersAccepted.split(" ").last().replace(",", "").replace(".", "").toInt()
seenStats[0] += lineTimesVisited.split(" ").last().replace(",", "").replace(".", "").toInt()
Expand Down

0 comments on commit 7500d24

Please sign in to comment.