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:
nossr50
2019-05-13 02:55:20 -07:00
parent 6425cd18b8
commit 2e3f9b4a96
17 changed files with 146 additions and 55 deletions

View File

@@ -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;

View File

@@ -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.");
}
}

View File

@@ -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());
}
}