make it harder to obtain 2 stars

This commit is contained in:
Thibault Duplessis 2016-07-05 17:02:36 +02:00
parent e7644bd51f
commit c81cf51732

View file

@ -40,7 +40,7 @@ function getStageRank(s, score) {
var max = getStageMaxScore(s);
if (typeof score !== 'number') score = score.reduce(function(a, b) { return a + b; }, 0);
if (score >= max - Math.max(200, s.levels.length * 50)) return 1;
if (score >= max - Math.max(200, s.levels.length * 300)) return 2;
if (score >= max - Math.max(200, s.levels.length * 150)) return 2;
return 3;
}