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