mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Add Herbalism subskill properties to config
This commit is contained in:
parent
fb08bbb79d
commit
8320b89b9f
@ -169,6 +169,7 @@ Version 2.2.0
|
|||||||
Added API method to grab the level cap of a skill by its PrimarySkillType ENUM definition
|
Added API method to grab the level cap of a skill by its PrimarySkillType ENUM definition
|
||||||
Added API method to check if a skill was being level capped
|
Added API method to check if a skill was being level capped
|
||||||
Added 'UndefinedSkillBehaviour' for trying to use a method that has no behaviour defined for the provided skill
|
Added 'UndefinedSkillBehaviour' for trying to use a method that has no behaviour defined for the provided skill
|
||||||
|
|
||||||
Version 2.1.81
|
Version 2.1.81
|
||||||
Fixed a bug where Arrow Deflect would never trigger outside of PVP
|
Fixed a bug where Arrow Deflect would never trigger outside of PVP
|
||||||
Fixed a bug where failing to salvage enchantments incorrectly colored the text
|
Fixed a bug where failing to salvage enchantments incorrectly colored the text
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.gmail.nossr50.config.hocon.skills.herbalism;
|
package com.gmail.nossr50.config.hocon.skills.herbalism;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.config.ConfigConstants;
|
||||||
import ninja.leaping.configurate.objectmapping.Setting;
|
import ninja.leaping.configurate.objectmapping.Setting;
|
||||||
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
@ -53,8 +54,30 @@ public class ConfigHerbalism {
|
|||||||
"\nHerbalism and other gathering skills offer a chance to get extra drops when harvesting the block.")
|
"\nHerbalism and other gathering skills offer a chance to get extra drops when harvesting the block.")
|
||||||
private HashSet<String> herbalismDoubleDropWhiteList = DEFAULT_BONUS_DROPS;
|
private HashSet<String> herbalismDoubleDropWhiteList = DEFAULT_BONUS_DROPS;
|
||||||
|
|
||||||
|
@Setting(value = ConfigConstants.SUB_SKILL_NODE)
|
||||||
|
private ConfigHerbalismSubSkills configHerbalismSubSkills = new ConfigHerbalismSubSkills();
|
||||||
|
|
||||||
public HashSet<String> getBonusDrops() {
|
public HashSet<String> getBonusDrops() {
|
||||||
return herbalismDoubleDropWhiteList;
|
return herbalismDoubleDropWhiteList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ConfigHerbalismSubSkills getConfigHerbalismSubSkills() {
|
||||||
|
return configHerbalismSubSkills;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConfigHerbalismDoubleDrops getDoubleDrops() {
|
||||||
|
return configHerbalismSubSkills.getDoubleDrops();
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConfigHerbalismGreenThumb getGreenThumb() {
|
||||||
|
return configHerbalismSubSkills.getGreenThumb();
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConfigHerbalismHylianLuck getHylianLuck() {
|
||||||
|
return configHerbalismSubSkills.getHylianLuck();
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConfigHerbalismShroomThumb getShroomThumb() {
|
||||||
|
return configHerbalismSubSkills.getShroomThumb();
|
||||||
|
}
|
||||||
}
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon.skills.herbalism;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.config.ConfigConstants;
|
||||||
|
import com.gmail.nossr50.datatypes.skills.properties.AbstractMaxBonusLevel;
|
||||||
|
import com.gmail.nossr50.datatypes.skills.properties.MaxBonusLevel;
|
||||||
|
import ninja.leaping.configurate.objectmapping.Setting;
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class ConfigHerbalismDoubleDrops {
|
||||||
|
|
||||||
|
@Setting(value = ConfigConstants.MAX_CHANCE_FIELD_NAME, comment = ConfigConstants.MAX_CHANCE_FIELD_DESCRIPTION)
|
||||||
|
private double maxChance = 100.0;
|
||||||
|
|
||||||
|
@Setting(value = ConfigConstants.MAX_BONUS_LEVEL_FIELD_NAME)
|
||||||
|
private MaxBonusLevel maxBonusLevel = new AbstractMaxBonusLevel(100);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon.skills.herbalism;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.config.ConfigConstants;
|
||||||
|
import com.gmail.nossr50.datatypes.skills.properties.AbstractMaxBonusLevel;
|
||||||
|
import com.gmail.nossr50.datatypes.skills.properties.MaxBonusLevel;
|
||||||
|
import ninja.leaping.configurate.objectmapping.Setting;
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class ConfigHerbalismGreenThumb {
|
||||||
|
|
||||||
|
@Setting(value = ConfigConstants.MAX_CHANCE_FIELD_NAME, comment = ConfigConstants.MAX_CHANCE_FIELD_DESCRIPTION)
|
||||||
|
private double maxChance = 100.0;
|
||||||
|
|
||||||
|
@Setting(value = ConfigConstants.MAX_BONUS_LEVEL_FIELD_NAME)
|
||||||
|
private MaxBonusLevel maxBonusLevel = new AbstractMaxBonusLevel(100);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon.skills.herbalism;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.config.ConfigConstants;
|
||||||
|
import com.gmail.nossr50.datatypes.skills.properties.AbstractMaxBonusLevel;
|
||||||
|
import com.gmail.nossr50.datatypes.skills.properties.MaxBonusLevel;
|
||||||
|
import ninja.leaping.configurate.objectmapping.Setting;
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class ConfigHerbalismHylianLuck {
|
||||||
|
|
||||||
|
@Setting(value = ConfigConstants.MAX_CHANCE_FIELD_NAME, comment = ConfigConstants.MAX_CHANCE_FIELD_DESCRIPTION)
|
||||||
|
private double maxChance = 10.0;
|
||||||
|
|
||||||
|
@Setting(value = ConfigConstants.MAX_BONUS_LEVEL_FIELD_NAME)
|
||||||
|
private MaxBonusLevel maxBonusLevel = new AbstractMaxBonusLevel(100);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon.skills.herbalism;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.config.ConfigConstants;
|
||||||
|
import com.gmail.nossr50.datatypes.skills.properties.AbstractMaxBonusLevel;
|
||||||
|
import com.gmail.nossr50.datatypes.skills.properties.MaxBonusLevel;
|
||||||
|
import ninja.leaping.configurate.objectmapping.Setting;
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class ConfigHerbalismShroomThumb {
|
||||||
|
|
||||||
|
@Setting(value = ConfigConstants.MAX_CHANCE_FIELD_NAME, comment = ConfigConstants.MAX_CHANCE_FIELD_DESCRIPTION)
|
||||||
|
private double maxChance = 50.0;
|
||||||
|
|
||||||
|
@Setting(value = ConfigConstants.MAX_BONUS_LEVEL_FIELD_NAME)
|
||||||
|
private MaxBonusLevel maxBonusLevel = new AbstractMaxBonusLevel(100);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon.skills.herbalism;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.Setting;
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class ConfigHerbalismSubSkills {
|
||||||
|
|
||||||
|
@Setting(value = "Double-Drops")
|
||||||
|
private ConfigHerbalismDoubleDrops doubleDrops = new ConfigHerbalismDoubleDrops();
|
||||||
|
|
||||||
|
@Setting(value = "Green-Thumb")
|
||||||
|
private ConfigHerbalismGreenThumb greenThumb = new ConfigHerbalismGreenThumb();
|
||||||
|
|
||||||
|
@Setting(value = "Hylian-Luck")
|
||||||
|
private ConfigHerbalismHylianLuck hylianLuck = new ConfigHerbalismHylianLuck();
|
||||||
|
|
||||||
|
@Setting(value = "Shroom-Thumb")
|
||||||
|
private ConfigHerbalismShroomThumb shroomThumb = new ConfigHerbalismShroomThumb();
|
||||||
|
|
||||||
|
|
||||||
|
public ConfigHerbalismDoubleDrops getDoubleDrops() {
|
||||||
|
return doubleDrops;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConfigHerbalismGreenThumb getGreenThumb() {
|
||||||
|
return greenThumb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConfigHerbalismHylianLuck getHylianLuck() {
|
||||||
|
return hylianLuck;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConfigHerbalismShroomThumb getShroomThumb() {
|
||||||
|
return shroomThumb;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user