Skip to content

Commit

Permalink
Reduce maximum missBonus for people with a bad sit counter
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-daniels committed Aug 24, 2019
1 parent 1d87f24 commit 43953ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/pool/src/main/MatchMaking.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ object MatchMaking {
}

// score bonus based on how many waves the member missed
private def missBonus(p: PoolMember) = (p.misses * 15) atMost 400
// when the user's sit counter is lower than -3, the maximum bonus becomes lower
private def missBonus(p: PoolMember) =
(p.misses * 15) atMost ((460 + (p.ragesitCounter atMost -3) * 20) atLeast 0)

// big malus if players have conflicting rating ranges
private def rangeMalus(a: PoolMember, b: PoolMember) =
Expand Down

0 comments on commit 43953ae

Please sign in to comment.