implement xp multiplier
This commit is contained in:
parent
5a5a25a799
commit
b66b459e05
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user