losing games no longer gives exp

This commit is contained in:
Chiss 2014-11-09 10:30:26 +11:00
parent ad933400b9
commit 2a04ed6eda
1 changed files with 3 additions and 8 deletions

View File

@ -38,7 +38,7 @@ public class ExperienceStatTracker extends StatTracker<Game>
if (winners != null)
{
for (Player player : event.GetGame().GetPlayers(false))
for (Player player : winners)
{
//Tally Gems
double gems = 0;
@ -56,14 +56,9 @@ public class ExperienceStatTracker extends StatTracker<Game>
//Game Time
double time = (System.currentTimeMillis() - _startTime)/60000d;
//Mult
double mult = 1;
if (!winners.contains(player))
mult = 0.25;
//Exp
int expGained = (int)(time*gems*mult);
int expGained = (int)(time*gems);
//Record Global and per Game
addStat(player, "ExpEarned", expGained, false, true);