mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-02 20:45:28 +02:00
Wire up special combat XP multipliers
This commit is contained in:
@@ -128,18 +128,6 @@ public class ExperienceConfig extends ConfigValidated {
|
||||
}*/
|
||||
|
||||
/* PVP modifier */
|
||||
public double getPlayerVersusPlayerXP() {
|
||||
return getDoubleValue(EXPERIENCE_FORMULA, MULTIPLIER, PVP);
|
||||
}
|
||||
|
||||
/* Spawned Mob modifier */
|
||||
public double getSpawnedMobXpMultiplier() {
|
||||
return getDoubleValue(EXPERIENCE_FORMULA, MOBSPAWNERS, MULTIPLIER);
|
||||
}
|
||||
|
||||
public double getBredMobXpMultiplier() {
|
||||
return getDoubleValue(EXPERIENCE_FORMULA, BREEDING, MULTIPLIER);
|
||||
}
|
||||
|
||||
/* Skill modifiers */
|
||||
public double getFormulaSkillModifier(PrimarySkillType skill) {
|
||||
@@ -186,10 +174,6 @@ public class ExperienceConfig extends ConfigValidated {
|
||||
return getDoubleValue(EXPERIENCE, COMBAT, MULTIPLIER, StringUtils.getEntityConfigName(entity));
|
||||
}
|
||||
|
||||
public double getAnimalsXP() {
|
||||
return getDoubleValue(EXPERIENCE, COMBAT, MULTIPLIER, ANIMALS);
|
||||
}
|
||||
|
||||
public boolean hasCombatXP(EntityType entity) {
|
||||
return hasNode(EXPERIENCE, COMBAT, MULTIPLIER, StringUtils.getEntityConfigName(entity));
|
||||
}
|
||||
|
@@ -177,6 +177,10 @@ public class ConfigExperience {
|
||||
return getConfigExperienceSkills().getSpawnedMobXPMult();
|
||||
}
|
||||
|
||||
public double getPlayerBredMobsXPMult() {
|
||||
return getExperienceCombat().getPlayerBredMobsXPMult();
|
||||
}
|
||||
|
||||
public double getPVPXPMult() {
|
||||
return getConfigExperienceSkills().getPVPXPMult();
|
||||
}
|
||||
|
@@ -112,4 +112,8 @@ public class ConfigExperienceCombat {
|
||||
public double getAnimalsXPMult() {
|
||||
return specialCombatExperienceMap.get("animals");
|
||||
}
|
||||
|
||||
public double getPlayerBredMobsXPMult() {
|
||||
return specialCombatExperienceMap.get("player-bred-mobs");
|
||||
}
|
||||
}
|
@@ -47,6 +47,10 @@ public class ConfigExperienceSkills {
|
||||
* BOILER PLATE GETTERS
|
||||
*/
|
||||
|
||||
public double getPlayerBredMobsXPMult() {
|
||||
return experienceCombat.getPlayerBredMobsXPMult();
|
||||
}
|
||||
|
||||
public ConfigExperienceAcrobatics getExperienceAcrobatics() {
|
||||
return experienceAcrobatics;
|
||||
}
|
||||
|
Reference in New Issue
Block a user