From 8ddbb3aa91c528a7301c370b4e0b02ea87ded40a Mon Sep 17 00:00:00 2001 From: nossr50 Date: Wed, 10 Apr 2019 02:03:01 -0700 Subject: [PATCH] Setup Acrobatics/Alchemy XP methods --- .../hocon/experience/ConfigExperience.java | 12 +++++++++ .../ConfigExperienceAcrobatics.java | 13 ++++++++++ .../experience/ConfigExperienceAlchemy.java | 26 +++++++++++++++++++ 3 files changed, 51 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperience.java b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperience.java index 2a6b4e013..047d4bb85 100644 --- a/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperience.java +++ b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperience.java @@ -107,4 +107,16 @@ public class ConfigExperience { public HashMap getAlchemyXPMap() { return experienceAlchemy.getAlchemyXPMap(); } + + public int getDodgeXP() { + return experienceAcrobatics.getDodgeXP(); + } + + public int getRollXP() { + return experienceAcrobatics.getRollXP(); + } + + public int getFallXP() { + return experienceAcrobatics.getFallXP(); + } } \ No newline at end of file diff --git a/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAcrobatics.java b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAcrobatics.java index 7a782f8d6..6588f7ac0 100644 --- a/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAcrobatics.java +++ b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAcrobatics.java @@ -33,4 +33,17 @@ public class ConfigExperienceAcrobatics { public Double getFeatherFallMultiplier() { return featherFallMultiplier; } + + public int getDodgeXP(){ + return acrobaticsXPMap.get("Dodge"); + } + + public int getRollXP(){ + return acrobaticsXPMap.get("Roll"); + } + + public int getFallXP(){ + return acrobaticsXPMap.get("Fall"); + } + } \ No newline at end of file diff --git a/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAlchemy.java b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAlchemy.java index e2abe3ed5..c60585bc9 100644 --- a/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAlchemy.java +++ b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAlchemy.java @@ -26,4 +26,30 @@ public class ConfigExperienceAlchemy { return alchemyXPMap; } + public int getStageOnePotionXP() + { + return alchemyXPMap.get("Stage-One-Potion"); + } + + public int getStageTwoPotionXP() + { + return alchemyXPMap.get("Stage-Two-Potion"); + } + + public int getStageThreePotionXP() + { + return alchemyXPMap.get("Stage-Three-Potion"); + } + + public int getStageFourPotionXP() + { + return alchemyXPMap.get("Stage-Four-Potion"); + } + + public int getStageFivePotionXP() + { + //This is purposely zero to prevent an exploit + return 0; + } + } \ No newline at end of file