mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-26 09:05:28 +02:00
Add + Wire DiminishingReturn config values
Removed the experience multiplier from the xp conversion task, it just seems like something very unecessary
This commit is contained in:
@@ -1092,7 +1092,7 @@ public final class ExperienceAPI {
|
||||
PrimarySkillType skill = PrimarySkillType.getSkill(skillType);
|
||||
|
||||
if (skill == null) {
|
||||
throw new InvalidSkillException();
|
||||
throw new InvalidSkillException(skillType);
|
||||
}
|
||||
|
||||
return skill;
|
||||
|
@@ -3,7 +3,7 @@ package com.gmail.nossr50.api.exceptions;
|
||||
public class InvalidSkillException extends RuntimeException {
|
||||
private static final long serialVersionUID = 942705284195791157L;
|
||||
|
||||
public InvalidSkillException() {
|
||||
super("That is not a valid skill.");
|
||||
public InvalidSkillException(String s) {
|
||||
super(s+" does not match a valid skill.");
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,9 @@
|
||||
package com.gmail.nossr50.api.exceptions;
|
||||
|
||||
import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
||||
|
||||
public class UndefinedSkillBehaviour extends RuntimeException {
|
||||
public UndefinedSkillBehaviour(PrimarySkillType primarySkillType) {
|
||||
super("Undefined behaviour for skill! - "+primarySkillType.toString());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user