Cap refund at lifetime best + 20 pts

Reduced from lifetime + 50
This commit is contained in:
Isaac Levy 2018-03-10 14:27:43 -05:00 committed by GitHub
parent 9f6a4f3ecb
commit f25739f8e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ private final class RatingRefund(
def pointsToRefund(ref: Refund, curRating: Int, perfs: PerfStat): Int = {
ref.diff - (ref.diff + curRating - ref.topRating atLeast 0) / 2 atMost
perfs.highest.fold(100) { _.int - curRating + 50 }
perfs.highest.fold(100) { _.int - curRating + 20 }
} squeeze (0, 150)
def refundPoints(victim: Victim, pt: PerfType, points: Int): Funit = {