implement xp multiplier

This commit is contained in:
xXVevzZXx 2016-06-08 23:40:48 +02:00
parent 5a5a25a799
commit b66b459e05
2 changed files with 3 additions and 1 deletions

View File

@ -278,6 +278,8 @@ public abstract class Game implements Listener
public long PrepareTime = 9000;
public boolean PlaySoundGameStart = true;
public double XpMult = 1;
// Chat Stats
public final ChatStatData Kills = new ChatStatData("Kills", "Kills", true);

View File

@ -90,7 +90,7 @@ public class ExperienceStatTracker extends StatTracker<Game>
mult = 1.5;
//Exp
int expGained = (int)((timeExp + gemExp)*mult);
int expGained = (int)(((timeExp + gemExp)*mult)*getGame().XpMult);
//Record Global and per Game
addStat(player, "ExpEarned", expGained, false, true);