new experience

This commit is contained in:
2025-02-22 18:38:59 -06:00
parent a199014a98
commit eec07f3a28
2 changed files with 105 additions and 14 deletions
+10 -2
View File
@@ -23,7 +23,7 @@ import static engine.gameManager.LootManager.LOOTMANAGER;
public class Experience {
private static final TreeMap<Integer, Integer> ExpToLevel;
private static final int[] LevelToExp = {Integer.MIN_VALUE, // Pad
public static final int[] LevelToExp = {Integer.MIN_VALUE, // Pad
// everything
// over 1
@@ -302,7 +302,7 @@ public class Experience {
case Cyan:
return 0.9;
case Green:
return 0.7;
return 0.8;
default:
return 0;
}
@@ -352,6 +352,14 @@ public class Experience {
if(killer.pvpKills.contains(mob.getObjectUUID()))
return;
if(true){
if(killer.combatStats == null)
killer.combatStats = new PlayerCombatStats(killer);
killer.combatStats.grantExperience(mob,g);
return;
}
double grantedExperience = 0.0;
if (g != null) { // Do group EXP stuff