losing games no longer gives exp
This commit is contained in:
parent
ad933400b9
commit
2a04ed6eda
@ -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;
|
||||
@ -57,13 +57,8 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user