Fixed low rank on attack map completion

This commit is contained in:
Anuken
2019-08-17 15:39:41 -04:00
parent 5955387bdd
commit 301387fb32
2 changed files with 10 additions and 8 deletions
+4 -2
View File
@@ -26,8 +26,10 @@ public class Stats{
public RankResult calculateRank(Zone zone, boolean launched){
float score = 0;
//each new launch period adds onto the rank 'points'
if(wavesLasted >= zone.conditionWave){
if(launched && zone.getRules().attackMode){
score += 3f;
}else if(wavesLasted >= zone.conditionWave){
//each new launch period adds onto the rank 'points'
score += (float)((wavesLasted - zone.conditionWave) / zone.launchPeriod + 1) * 1.2f;
}