|
@@ -1,5 +1,6 @@
|
|
|
package com.gmail.nossr50.config.hocon.skills.coreskills;
|
|
|
|
|
|
+import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
|
|
import ninja.leaping.configurate.objectmapping.Setting;
|
|
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
|
|
|
|
@@ -10,6 +11,10 @@ public class ConfigCoreSkills {
|
|
|
"\nCore skills are ones built into mcMMO")
|
|
|
private ConfigCoreSkillsAcrobatics configCoreSkillsAcrobatics = new ConfigCoreSkillsAcrobatics();
|
|
|
|
|
|
+ @Setting(value = "Combat-Settings", comment = "Determine whether or not a skills effects can activate in PVP or PVE" +
|
|
|
+ "\nIf a skill has no combat interactions, the toggle for it will still exists in case I ever do add combat interactions for the skill.")
|
|
|
+ private ConfigCoreSkillsCombatToggles combatToggles = new ConfigCoreSkillsCombatToggles();
|
|
|
+
|
|
|
public boolean isRollEnabled() {
|
|
|
return configCoreSkillsAcrobatics.isRollEnabled();
|
|
|
}
|
|
@@ -21,4 +26,24 @@ public class ConfigCoreSkills {
|
|
|
public boolean isAcrobaticsEnabled() {
|
|
|
return getConfigCoreSkillsAcrobatics().isAcrobaticsEnabled();
|
|
|
}
|
|
|
+
|
|
|
+ public ConfigCoreSkillsCombatToggles getCombatToggles() {
|
|
|
+ return combatToggles;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ConfigCoreSkillCombatMap getPve() {
|
|
|
+ return combatToggles.getPve();
|
|
|
+ }
|
|
|
+
|
|
|
+ public ConfigCoreSkillCombatMap getPvp() {
|
|
|
+ return combatToggles.getPvp();
|
|
|
+ }
|
|
|
+
|
|
|
+ public boolean isPVEEnabled(PrimarySkillType primarySkillType) {
|
|
|
+ return combatToggles.isPVEEnabled(primarySkillType);
|
|
|
+ }
|
|
|
+
|
|
|
+ public boolean isPVPEnabled(PrimarySkillType primarySkillType) {
|
|
|
+ return combatToggles.isPVPEnabled(primarySkillType);
|
|
|
+ }
|
|
|
}
|