2012-11-21 21:49:54 +01:00
package com.gmail.nossr50.config ;
2019-01-09 04:52:52 +01:00
import com.gmail.nossr50.datatypes.interactions.NotificationType ;
import com.gmail.nossr50.datatypes.skills.SubSkillType ;
import com.gmail.nossr50.datatypes.skills.subskills.AbstractSubSkill ;
2019-01-24 00:06:00 +01:00
import com.gmail.nossr50.mcMMO ;
2019-01-09 04:52:52 +01:00
import net.md_5.bungee.api.ChatColor ;
2013-10-01 14:57:21 +02:00
2019-01-15 07:11:58 +01:00
import java.util.ArrayList ;
import java.util.List ;
2013-02-24 06:18:01 +01:00
public class AdvancedConfig extends AutoUpdateConfigLoader {
2012-11-21 21:49:54 +01:00
private static AdvancedConfig instance ;
2012-12-24 22:56:25 +01:00
2012-11-21 21:49:54 +01:00
private AdvancedConfig ( ) {
super ( " advanced.yml " ) ;
2013-08-20 21:51:12 +02:00
validate ( ) ;
2012-11-21 21:49:54 +01:00
}
2013-01-26 23:01:55 +01:00
2012-11-21 21:49:54 +01:00
public static AdvancedConfig getInstance ( ) {
if ( instance = = null ) {
instance = new AdvancedConfig ( ) ;
}
2013-01-26 23:01:55 +01:00
2012-11-21 21:49:54 +01:00
return instance ;
}
2012-12-24 22:56:25 +01:00
2012-11-26 01:40:42 +01:00
@Override
2013-08-20 21:51:12 +02:00
protected boolean validateKeys ( ) {
2013-07-29 00:37:13 +02:00
// Validate all the settings!
List < String > reason = new ArrayList < String > ( ) ;
/* GENERAL */
2019-01-24 00:06:00 +01:00
if ( getAbilityLength ( ) < 1 ) {
reason . add ( " Skills.General.Ability.Length.<mode>.IncreaseLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getEnchantBuff ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.General.Ability.EnchantBuff should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
/* ACROBATICS */
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . ACROBATICS_DODGE ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Acrobatics.Dodge.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . ACROBATICS_DODGE ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Acrobatics.Dodge.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getDodgeDamageModifier ( ) < = 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Acrobatics.Dodge.DamageModifier should be greater than 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . ACROBATICS_ROLL ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Acrobatics.Roll.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . ACROBATICS_ROLL ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Acrobatics.Roll.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getRollDamageThreshold ( ) < 0 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Acrobatics.Roll.DamageThreshold should be at least 0! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getGracefulRollDamageThreshold ( ) < 0 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Acrobatics.GracefulRoll.DamageThreshold should be at least 0! " ) ;
2013-07-29 00:37:13 +02:00
}
2013-11-16 00:21:00 +01:00
/* ALCHEMY */
2019-01-17 17:46:10 +01:00
/ * if ( getCatalysisUnlockLevel ( ) < 0 ) {
2013-11-16 00:21:00 +01:00
reason . add ( " Skills.Alchemy.Catalysis.UnlockLevel should be at least 0! " ) ;
}
2014-01-18 11:50:42 +01:00
2013-11-16 00:21:00 +01:00
if ( getCatalysisMaxBonusLevel ( ) < = getCatalysisUnlockLevel ( ) ) {
reason . add ( " Skills.Alchemy.Catalysis.MaxBonusLevel should be greater than Skills.Alchemy.Catalysis.UnlockLevel! " ) ;
2019-01-17 17:46:10 +01:00
} * /
2014-01-18 11:50:42 +01:00
2013-11-16 00:21:00 +01:00
if ( getCatalysisMinSpeed ( ) < = 0 ) {
reason . add ( " Skills.Alchemy.Catalysis.MinSpeed must be greater than 0! " ) ;
}
2014-01-18 11:50:42 +01:00
2013-11-16 00:21:00 +01:00
if ( getCatalysisMaxSpeed ( ) < getCatalysisMinSpeed ( ) ) {
reason . add ( " Skills.Alchemy.Catalysis.MaxSpeed should be at least Skills.Alchemy.Catalysis.MinSpeed! " ) ;
}
2019-01-17 17:46:10 +01:00
/ * List < Alchemy . Tier > alchemyTierList = Arrays . asList ( Alchemy . Tier . values ( ) ) ;
2013-11-16 00:21:00 +01:00
for ( Alchemy . Tier tier : alchemyTierList ) {
if ( getConcoctionsTierLevel ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Alchemy.Rank_Levels.Rank_ " + rank + " should be at least 0! " ) ;
2013-11-16 00:21:00 +01:00
}
2014-01-18 11:50:42 +01:00
2013-11-16 00:21:00 +01:00
if ( tier ! = Alchemy . Tier . fromNumerical ( Alchemy . Tier . values ( ) . length ) ) {
Alchemy . Tier nextTier = alchemyTierList . get ( alchemyTierList . indexOf ( tier ) - 1 ) ;
2014-01-18 11:50:42 +01:00
2014-01-18 12:01:18 +01:00
if ( getConcoctionsTierLevel ( tier ) > getConcoctionsTierLevel ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Alchemy.Rank_Levels.Rank_ " + rank + " should be less than or equal to Skills.Alchemy.Rank_Levels.Rank_ " + nextrank + " ! " ) ;
2013-11-16 00:21:00 +01:00
}
}
2019-01-17 17:46:10 +01:00
} * /
2013-11-16 00:21:00 +01:00
2013-07-29 00:37:13 +02:00
/* ARCHERY */
2019-01-03 13:32:46 +01:00
if ( getSkillShotRankDamageMultiplier ( ) < = 0 ) {
reason . add ( " Skills.Archery.SkillShot.RankDamageMultiplier should be greater than 0! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . ARCHERY_DAZE ) < 1 ) {
2019-01-04 16:58:39 +01:00
reason . add ( " Skills.Archery.Daze.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . ARCHERY_DAZE ) < 1 ) {
2019-01-04 16:58:39 +01:00
reason . add ( " Skills.Archery.Daze.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2014-06-29 16:38:40 +02:00
if ( getDazeBonusDamage ( ) < 0 ) {
2019-01-04 16:58:39 +01:00
reason . add ( " Skills.Archery.Daze.BonusDamage should be at least 0! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . ARCHERY_ARROW_RETRIEVAL ) < 1 ) {
2019-01-04 16:58:39 +01:00
reason . add ( " Skills.Archery.Retrieve.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . ARCHERY_ARROW_RETRIEVAL ) < 1 ) {
2019-01-04 16:58:39 +01:00
reason . add ( " Skills.Archery.Retrieve.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getForceMultiplier ( ) < 0 ) {
2019-01-04 16:58:39 +01:00
reason . add ( " Skills.Archery.ForceMultiplier should be at least 0! " ) ;
2013-07-29 00:37:13 +02:00
}
/* AXES */
2019-01-03 13:32:46 +01:00
if ( getAxeMasteryRankDamageMultiplier ( ) < 0 )
{
reason . add ( " Skills.Axes.AxeMastery.RankDamageMultiplier should be at least 0! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . AXES_CRITICAL_STRIKES ) < 1 ) {
2013-11-22 18:32:23 +01:00
reason . add ( " Skills.Axes.CriticalHit.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . AXES_CRITICAL_STRIKES ) < 1 ) {
2013-11-22 18:32:23 +01:00
reason . add ( " Skills.Axes.CriticalHit.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-04 16:58:39 +01:00
if ( getCriticalStrikesPVPModifier ( ) < 1 ) {
reason . add ( " Skills.Axes.CriticalStrikes.PVP_Modifier should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-04 16:58:39 +01:00
if ( getCriticalStrikesPVPModifier ( ) < 1 ) {
reason . add ( " Skills.Axes.CriticalStrikes.PVE_Modifier should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getGreaterImpactChance ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Axes.GreaterImpact.Chance should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getGreaterImpactModifier ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Axes.GreaterImpact.KnockbackModifier should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getGreaterImpactBonusDamage ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Axes.GreaterImpact.BonusDamage should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getArmorImpactIncreaseLevel ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Axes.ArmorImpact.IncreaseLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getImpactChance ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Axes.ArmorImpact.Chance should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getArmorImpactMaxDurabilityDamage ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Axes.ArmorImpact.MaxPercentageDurabilityDamage should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getSkullSplitterModifier ( ) < 1 ) {
2014-10-31 00:48:03 +01:00
reason . add ( " Skills.Axes.SkullSplitter.DamageModifier should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
/* FISHING */
2019-01-17 17:46:10 +01:00
/ * List < Fishing . Tier > fishingTierList = Arrays . asList ( Fishing . Tier . values ( ) ) ;
2013-07-29 00:37:13 +02:00
2019-01-17 17:46:10 +01:00
for ( int rank : fishingTierList ) {
2013-10-01 14:57:21 +02:00
if ( getFishingTierLevel ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Fishing.Rank_Levels.Rank_ " + rank + " should be at least 0! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getShakeChance ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Fishing.Shake_Chance.Rank_ " + rank + " should be at least 0! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getFishingVanillaXPModifier ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Fishing.VanillaXPMultiplier.Rank_ " + rank + " should be at least 0! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( tier ! = Fishing . Tier . EIGHT ) {
Fishing . Tier nextTier = fishingTierList . get ( fishingTierList . indexOf ( tier ) - 1 ) ;
2013-09-30 16:59:54 +02:00
2014-01-18 12:01:18 +01:00
if ( getFishingTierLevel ( tier ) > getFishingTierLevel ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Fishing.Rank_Levels.Rank_ " + rank + " should be less than or equal to Skills.Fishing.Rank_Levels.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
if ( getShakeChance ( tier ) > getShakeChance ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Fishing.Shake_Chance.Rank_ " + rank + " should be less than or equal to Skills.Fishing.Shake_Chance.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-09-30 16:59:54 +02:00
2013-10-01 14:57:21 +02:00
if ( getFishingVanillaXPModifier ( tier ) > getFishingVanillaXPModifier ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Fishing.VanillaXPMultiplier.Rank_ " + rank + " should be less than or equal to Skills.Fishing.VanillaXPMultiplier.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
}
2019-01-17 17:46:10 +01:00
} * /
2013-09-30 16:59:54 +02:00
2013-07-29 00:37:13 +02:00
if ( getFishermanDietRankChange ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Fishing.FishermansDiet.RankChange should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-17 17:46:10 +01:00
/ * if ( getIceFishingUnlockLevel ( ) < 0 ) {
2014-01-17 15:51:28 +01:00
reason . add ( " Skills.Fishing.IceFishing.UnlockLevel should be at least 0! " ) ;
2013-07-29 00:37:13 +02:00
}
2014-01-17 15:51:28 +01:00
if ( getMasterAnglerUnlockLevel ( ) < 0 ) {
reason . add ( " Skills.Fishing.MasterAngler.UnlockLevel should be at least 0! " ) ;
2019-01-17 17:46:10 +01:00
} * /
2013-10-10 19:12:25 +02:00
if ( getMasterAnglerBoatModifier ( ) < 1 ) {
reason . add ( " Skills.Fishing.MasterAngler.BoatModifier should be at least 1! " ) ;
}
if ( getMasterAnglerBiomeModifier ( ) < 1 ) {
reason . add ( " Skills.Fishing.MasterAngler.BiomeModifier should be at least 1! " ) ;
}
2013-07-29 00:37:13 +02:00
/* HERBALISM */
if ( getFarmerDietRankChange ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Herbalism.FarmersDiet.RankChange should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getGreenThumbStageChange ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Herbalism.GreenThumb.StageChange should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . HERBALISM_GREEN_THUMB ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Herbalism.GreenThumb.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . HERBALISM_GREEN_THUMB ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Herbalism.GreenThumb.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . HERBALISM_DOUBLE_DROPS ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Herbalism.DoubleDrops.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . HERBALISM_DOUBLE_DROPS ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Herbalism.DoubleDrops.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . HERBALISM_HYLIAN_LUCK ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Herbalism.HylianLuck.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . HERBALISM_HYLIAN_LUCK ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Herbalism.HylianLuck.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . HERBALISM_SHROOM_THUMB ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Herbalism.ShroomThumb.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . HERBALISM_SHROOM_THUMB ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Herbalism.ShroomThumb.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
/* MINING */
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . MINING_DOUBLE_DROPS ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Mining.DoubleDrops.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . MINING_DOUBLE_DROPS ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Mining.DoubleDrops.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-17 17:46:10 +01:00
/ * List < BlastMining . Tier > blastMiningTierList = Arrays . asList ( BlastMining . Tier . values ( ) ) ;
2013-07-29 00:37:13 +02:00
2019-01-17 17:46:10 +01:00
for ( int rank : blastMiningTierList ) {
2013-10-01 14:57:21 +02:00
if ( getBlastMiningRankLevel ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.Rank_Levels.Rank_ " + rank + " should be at least 0! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getBlastDamageDecrease ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.BlastDamageDecrease.Rank_ " + rank + " should be at least 0! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getOreBonus ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.OreBonus.Rank_ " + rank + " should be at least 0! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getDebrisReduction ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.DebrisReduction.Rank_ " + rank + " should be at least 0! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getDropMultiplier ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.DropMultiplier.Rank_ " + rank + " should be at least 0! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getBlastRadiusModifier ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.BlastRadiusModifier.Rank_ " + rank + " should be at least 0! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( tier ! = BlastMining . Tier . EIGHT ) {
BlastMining . Tier nextTier = blastMiningTierList . get ( blastMiningTierList . indexOf ( tier ) - 1 ) ;
2013-07-29 00:37:13 +02:00
2014-01-18 12:01:18 +01:00
if ( getBlastMiningRankLevel ( tier ) > getBlastMiningRankLevel ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.Rank_Levels.Rank_ " + rank + " should be less than or equal to Skills.Mining.BlastMining.Rank_Levels.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getBlastDamageDecrease ( tier ) > getBlastDamageDecrease ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.BlastDamageDecrease.Rank_ " + rank + " should be less than or equal to Skills.Mining.BlastMining.BlastDamageDecrease.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getOreBonus ( tier ) > getOreBonus ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.OreBonus.Rank_ " + rank + " should be less than or equal to Skills.Mining.BlastMining.OreBonus.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getDebrisReduction ( tier ) > getDebrisReduction ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.DebrisReduction.Rank_ " + rank + " should be less than or equal to Skills.Mining.BlastMining.DebrisReduction.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getDropMultiplier ( tier ) > getDropMultiplier ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.DropMultiplier.Rank_ " + rank + " should be less than or equal to Skills.Mining.BlastMining.DropMultiplier.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getBlastRadiusModifier ( tier ) > getBlastRadiusModifier ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Mining.BlastMining.BlastRadiusModifier.Rank_ " + rank + " should be less than or equal to Skills.Mining.BlastMining.BlastRadiusModifier.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
}
2019-01-17 17:46:10 +01:00
} * /
2013-07-29 00:37:13 +02:00
/* REPAIR */
if ( getRepairMasteryMaxBonus ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Repair.RepairMastery.MaxBonusPercentage should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getRepairMasteryMaxLevel ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Repair.RepairMastery.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . REPAIR_SUPER_REPAIR ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Repair.SuperRepair.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . REPAIR_SUPER_REPAIR ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Repair.SuperRepair.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-17 17:46:10 +01:00
/ * List < ArcaneForging . Tier > arcaneForgingTierList = Arrays . asList ( ArcaneForging . Tier . values ( ) ) ;
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
for ( ArcaneForging . Tier tier : arcaneForgingTierList ) {
if ( getArcaneForgingRankLevel ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Repair.ArcaneForging.Rank_Levels.Rank_ " + rank + " should be at least 0! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-09-30 16:59:54 +02:00
2013-10-01 14:57:21 +02:00
if ( getArcaneForgingDowngradeChance ( tier ) < 0 | | getArcaneForgingDowngradeChance ( tier ) > 100 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Repair.ArcaneForging.Downgrades.Chance.Rank_ " + rank + " only accepts values from 0 to 100! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-09-30 16:59:54 +02:00
2013-10-01 14:57:21 +02:00
if ( getArcaneForgingKeepEnchantsChance ( tier ) < 0 | | getArcaneForgingKeepEnchantsChance ( tier ) > 100 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Repair.ArcaneForging.Keep_Enchants.Chance.Rank_ " + rank + " only accepts values from 0 to 100! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-09-30 16:59:54 +02:00
2013-10-01 14:57:21 +02:00
if ( tier ! = ArcaneForging . Tier . EIGHT ) {
ArcaneForging . Tier nextTier = arcaneForgingTierList . get ( arcaneForgingTierList . indexOf ( tier ) - 1 ) ;
2013-09-30 16:59:54 +02:00
2014-01-18 12:01:18 +01:00
if ( getArcaneForgingRankLevel ( tier ) > getArcaneForgingRankLevel ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Repair.ArcaneForging.Rank_Levels.Rank_ " + rank + " should be less than or equal to Skills.Repair.ArcaneForging.Rank_Levels.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getArcaneForgingDowngradeChance ( nextTier ) > getArcaneForgingDowngradeChance ( tier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Repair.ArcaneForging.Downgrades.Chance.Rank_ " + nextrank + " should be less than or equal to Skills.Repair.ArcaneForging.Downgrades.Chance.Rank_ " + rank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2013-10-01 14:57:21 +02:00
if ( getArcaneForgingKeepEnchantsChance ( tier ) > getArcaneForgingKeepEnchantsChance ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Repair.ArcaneForging.Keep_Enchants.Chance.Rank_ " + rank + " should be less than or equal to Skills.Repair.ArcaneForging.Keep_Enchants.Chance.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
}
2019-01-17 17:46:10 +01:00
} * /
2013-09-30 16:59:54 +02:00
2013-03-06 18:31:48 +01:00
/* SALVAGE */
2019-01-31 23:07:03 +01:00
/ * if ( getSalvageMaxPercentage ( ) < 1 ) {
2013-03-06 18:31:48 +01:00
reason . add ( " Skills.Salvage.MaxPercentage should be at least 1! " ) ;
}
if ( getSalvageMaxPercentageLevel ( ) < 1 ) {
reason . add ( " Skills.Salvage.MaxPercentageLevel should be at least 1! " ) ;
2019-01-31 23:07:03 +01:00
} * /
2013-03-06 18:31:48 +01:00
2019-01-17 17:46:10 +01:00
/ * if ( getAdvancedSalvageUnlockLevel ( ) < 0 ) {
2014-09-06 20:23:41 +02:00
reason . add ( " Skills.Salvage.AdvancedSalvage.UnlockLevel should be at least 0! " ) ;
2019-01-17 17:46:10 +01:00
} * /
2013-03-06 18:31:48 +01:00
2019-01-17 17:46:10 +01:00
/ * List < Salvage . Tier > salvageTierList = Arrays . asList ( Salvage . Tier . values ( ) ) ;
2013-03-06 18:31:48 +01:00
for ( Salvage . Tier tier : salvageTierList ) {
if ( getArcaneSalvageRankLevel ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Salvage.ArcaneSalvage.Rank_Levels.Rank_ " + rank + " should be at least 0! " ) ;
2013-03-06 18:31:48 +01:00
}
if ( getArcaneSalvageExtractFullEnchantsChance ( tier ) < 0 | | getArcaneSalvageExtractFullEnchantsChance ( tier ) > 100 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Salvage.ArcaneSalvage.ExtractFullEnchant.Rank_ " + rank + " only accepts values from 0 to 100! " ) ;
2013-03-06 18:31:48 +01:00
}
if ( getArcaneSalvageExtractPartialEnchantsChance ( tier ) < 0 | | getArcaneSalvageExtractPartialEnchantsChance ( tier ) > 100 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Salvage.ArcaneSalvage.ExtractPartialEnchant.Rank_ " + rank + " only accepts values from 0 to 100! " ) ;
2013-03-06 18:31:48 +01:00
}
if ( tier ! = Salvage . Tier . EIGHT ) {
Salvage . Tier nextTier = salvageTierList . get ( salvageTierList . indexOf ( tier ) - 1 ) ;
2014-09-06 19:55:11 +02:00
if ( getArcaneSalvageRankLevel ( tier ) > getArcaneSalvageRankLevel ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Salvage.ArcaneSalvage.Rank_Levels.Rank_ " + rank + " should be less than or equal to Skills.Salvage.ArcaneSalvage.Rank_Levels.Rank_ " + nextrank + " ! " ) ;
2013-03-06 18:31:48 +01:00
}
if ( getArcaneSalvageExtractFullEnchantsChance ( tier ) > getArcaneSalvageExtractFullEnchantsChance ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Salvage.ArcaneSalvage.ExtractFullEnchant.Rank_ " + rank + " should be less than or equal to Skills.Salvage.ArcaneSalvage.ExtractFullEnchant.Rank_ " + nextrank + " ! " ) ;
2013-03-06 18:31:48 +01:00
}
if ( getArcaneSalvageExtractPartialEnchantsChance ( tier ) > getArcaneSalvageExtractPartialEnchantsChance ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Salvage.ArcaneSalvage.ExtractPartialEnchant.Rank_ " + rank + " should be less than or equal to Skills.Salvage.ArcaneSalvage.ExtractPartialEnchant.Rank_ " + nextrank + " ! " ) ;
2013-03-06 18:31:48 +01:00
}
}
2019-01-17 17:46:10 +01:00
} * /
2013-03-06 18:31:48 +01:00
2013-07-29 00:37:13 +02:00
/* SMELTING */
if ( getBurnModifierMaxLevel ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Smelting.FuelEfficiency.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getBurnTimeMultiplier ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Smelting.FuelEfficiency.Multiplier should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . SMELTING_SECOND_SMELT ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Smelting.SecondSmelt.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . SMELTING_SECOND_SMELT ) < 1 ) {
2013-10-11 16:22:30 +02:00
reason . add ( " Skills.Smelting.SecondSmelt.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-17 17:46:10 +01:00
/ * if ( getFluxMiningUnlockLevel ( ) < 0 ) {
2014-01-17 15:51:28 +01:00
reason . add ( " Skills.Smelting.FluxMining.UnlockLevel should be at least 0! " ) ;
2019-01-17 17:46:10 +01:00
} * /
2013-07-29 00:37:13 +02:00
if ( getFluxMiningChance ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Smelting.FluxMining.Chance should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-17 17:46:10 +01:00
/ * List < Smelting . Tier > smeltingTierList = Arrays . asList ( Smelting . Tier . values ( ) ) ;
2013-09-30 16:59:54 +02:00
2019-01-17 17:46:10 +01:00
for ( int rank : smeltingTierList ) {
2013-10-01 17:01:11 +02:00
if ( getSmeltingRankLevel ( tier ) < 0 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Smelting.Rank_Levels.Rank_ " + rank + " should be at least 0! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-09-30 16:59:54 +02:00
2013-10-01 14:57:21 +02:00
if ( getSmeltingVanillaXPBoostMultiplier ( tier ) < 1 ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Smelting.VanillaXPMultiplier.Rank_ " + rank + " should be at least 1! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-09-30 16:59:54 +02:00
2013-10-01 14:57:21 +02:00
if ( tier ! = Smelting . Tier . EIGHT ) {
Smelting . Tier nextTier = smeltingTierList . get ( smeltingTierList . indexOf ( tier ) - 1 ) ;
2013-07-29 00:37:13 +02:00
2014-01-18 12:01:18 +01:00
if ( getSmeltingRankLevel ( tier ) > getSmeltingRankLevel ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Smelting.Rank_Levels.Rank_ " + rank + " should be less than or equal to Skills.Smelting.Rank_Levels.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
2013-07-29 00:37:13 +02:00
2014-01-08 13:19:51 +01:00
if ( getSmeltingVanillaXPBoostMultiplier ( tier ) > getSmeltingVanillaXPBoostMultiplier ( nextTier ) ) {
2019-01-17 17:46:10 +01:00
reason . add ( " Skills.Smelting.VanillaXPMultiplier.Rank_ " + rank + " should be less than or equal to Skills.Smelting.VanillaXPMultiplier.Rank_ " + nextrank + " ! " ) ;
2013-10-01 14:57:21 +02:00
}
}
2019-01-17 17:46:10 +01:00
} * /
2013-09-30 16:59:54 +02:00
2013-07-29 00:37:13 +02:00
/* SWORDS */
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . SWORDS_RUPTURE ) < 1 ) {
2019-01-22 00:14:01 +01:00
reason . add ( " Skills.Swords.Rupture.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-22 00:14:01 +01:00
if ( getMaxBonusLevel ( SubSkillType . SWORDS_RUPTURE ) < 1 ) {
reason . add ( " Skills.Swords.Rupture.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-22 00:14:01 +01:00
if ( getRuptureMaxTicks ( ) < 1 ) {
reason . add ( " Skills.Swords.Rupture.MaxTicks should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-22 00:14:01 +01:00
if ( getRuptureMaxTicks ( ) < getRuptureBaseTicks ( ) ) {
reason . add ( " Skills.Swords.Rupture.MaxTicks should be at least Skills.Swords.Rupture.BaseTicks! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-22 00:14:01 +01:00
if ( getRuptureBaseTicks ( ) < 1 ) {
reason . add ( " Skills.Swords.Rupture.BaseTicks should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . SWORDS_COUNTER_ATTACK ) < 1 ) {
2019-01-04 16:58:39 +01:00
reason . add ( " Skills.Swords.CounterAttack.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . SWORDS_COUNTER_ATTACK ) < 1 ) {
2019-01-04 16:58:39 +01:00
reason . add ( " Skills.Swords.CounterAttack.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getCounterModifier ( ) < 1 ) {
2019-01-04 16:58:39 +01:00
reason . add ( " Skills.Swords.CounterAttack.DamageModifier should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getSerratedStrikesModifier ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Swords.SerratedStrikes.DamageModifier should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
if ( getSerratedStrikesTicks ( ) < 1 ) {
2019-01-22 00:14:01 +01:00
reason . add ( " Skills.Swords.SerratedStrikes.RuptureTicks should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
/* TAMING */
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . TAMING_GORE ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Taming.Gore.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . TAMING_GORE ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Taming.Gore.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-24 00:29:31 +01:00
/ * if ( getGoreRuptureTicks ( ) < 1 ) {
2019-01-22 00:14:01 +01:00
reason . add ( " Skills.Taming.Gore.RuptureTicks should be at least 1! " ) ;
2019-01-24 00:29:31 +01:00
} * /
2013-07-29 00:37:13 +02:00
if ( getGoreModifier ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Taming.Gore.Modifier should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-17 17:46:10 +01:00
/ * if ( getFastFoodUnlock ( ) < 0 ) {
2014-01-17 15:51:28 +01:00
reason . add ( " Skills.Taming.FastFood.UnlockLevel should be at least 0! " ) ;
2019-01-17 17:46:10 +01:00
} * /
2013-07-29 00:37:13 +02:00
if ( getFastFoodChance ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Taming.FastFood.Chance should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-17 17:46:10 +01:00
/ * if ( getEnviromentallyAwareUnlock ( ) < 0 ) {
2014-01-17 15:51:28 +01:00
reason . add ( " Skills.Taming.EnvironmentallyAware.UnlockLevel should be at least 0! " ) ;
2019-01-17 17:46:10 +01:00
} * /
2013-07-29 00:37:13 +02:00
2019-01-17 17:46:10 +01:00
/ * if ( getThickFurUnlock ( ) < 0 ) {
2014-01-17 15:51:28 +01:00
reason . add ( " Skills.Taming.ThickFur.UnlockLevel should be at least 0! " ) ;
2019-01-17 17:46:10 +01:00
} * /
2013-07-29 00:37:13 +02:00
if ( getThickFurModifier ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Taming.ThickFur.Modifier should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-17 17:46:10 +01:00
/ * if ( getHolyHoundUnlock ( ) < 0 ) {
2014-01-17 15:51:28 +01:00
reason . add ( " Skills.Taming.HolyHound.UnlockLevel should be at least 0! " ) ;
2013-07-29 00:37:13 +02:00
}
2014-01-17 15:51:28 +01:00
if ( getShockProofUnlock ( ) < 0 ) {
reason . add ( " Skills.Taming.ShockProof.UnlockLevel should be at least 0! " ) ;
2019-01-17 17:46:10 +01:00
} * /
2013-07-29 00:37:13 +02:00
if ( getShockProofModifier ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Taming.ShockProof.Modifier should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-17 17:46:10 +01:00
/ * if ( getSharpenedClawsUnlock ( ) < 0 ) {
2014-01-17 15:51:28 +01:00
reason . add ( " Skills.Taming.SharpenedClaws.UnlockLevel should be at least 0! " ) ;
2019-01-17 17:46:10 +01:00
} * /
2013-07-29 00:37:13 +02:00
if ( getSharpenedClawsBonus ( ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Taming.SharpenedClaws.Bonus should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2013-11-10 19:54:45 +01:00
if ( getMaxHorseJumpStrength ( ) < 0 | | getMaxHorseJumpStrength ( ) > 2 ) {
reason . add ( " Skills.Taming.CallOfTheWild.MaxHorseJumpStrength should be between 0 and 2! " ) ;
}
2013-07-29 00:37:13 +02:00
/* UNARMED */
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . UNARMED_DISARM ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Unarmed.Disarm.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . UNARMED_DISARM ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Unarmed.Disarm.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . UNARMED_ARROW_DEFLECT ) < 1 ) {
2019-01-04 16:58:39 +01:00
reason . add ( " Skills.Unarmed.ArrowDeflect.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . UNARMED_ARROW_DEFLECT ) < 1 ) {
2019-01-04 16:58:39 +01:00
reason . add ( " Skills.Unarmed.ArrowDeflect.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . UNARMED_IRON_GRIP ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Unarmed.IronGrip.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . UNARMED_IRON_GRIP ) < 1 ) {
2013-10-01 17:01:11 +02:00
reason . add ( " Skills.Unarmed.IronGrip.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
/* WOODCUTTING */
2018-12-31 19:10:00 +01:00
2019-01-17 17:46:10 +01:00
/ * if ( getLeafBlowUnlockLevel ( ) < 0 ) {
2014-01-17 15:51:28 +01:00
reason . add ( " Skills.Woodcutting.LeafBlower.UnlockLevel should be at least 0! " ) ;
2019-01-17 17:46:10 +01:00
} * /
2013-07-29 00:37:13 +02:00
2019-01-25 00:23:39 +01:00
if ( getMaximumProbability ( SubSkillType . WOODCUTTING_HARVEST_LUMBER ) < 1 ) {
2018-12-31 19:10:00 +01:00
reason . add ( " Skills.Woodcutting.HarvestLumber.ChanceMax should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
2019-01-09 04:52:52 +01:00
if ( getMaxBonusLevel ( SubSkillType . WOODCUTTING_HARVEST_LUMBER ) < 1 ) {
2018-12-31 19:10:00 +01:00
reason . add ( " Skills.Woodcutting.HarvestLumber.MaxBonusLevel should be at least 1! " ) ;
2013-07-29 00:37:13 +02:00
}
/* KRAKEN */
if ( getKrakenTriesBeforeRelease ( ) < 1 ) {
reason . add ( " Kraken.Tries_Before_Release should be at least 1! " ) ;
}
if ( getKrakenHealth ( ) < 1 ) {
reason . add ( " Kraken.Health should be at least 1! " ) ;
}
if ( getKrakenAttackInterval ( ) < 1 ) {
reason . add ( " Kraken.Attack_Interval_Seconds should be at least 1! " ) ;
}
if ( getKrakenAttackDamage ( ) < 1 ) {
reason . add ( " Kraken.Attack_Damage should be at least 1! " ) ;
}
2013-08-20 21:51:12 +02:00
return noErrorsInConfig ( reason ) ;
2013-07-29 00:37:13 +02:00
}
2013-02-22 19:39:47 +01:00
2013-08-20 21:51:12 +02:00
@Override
protected void loadKeys ( ) { }
2012-11-26 01:40:42 +01:00
/* GENERAL */
2019-01-18 22:10:45 +01:00
public int getStartingLevel ( ) { return config . getInt ( " Skills.General.StartingLevel " , 1 ) ; }
2019-01-24 00:06:00 +01:00
/ * *
* This returns the maximum level at which superabilities will stop lengthening from scaling alongside skill level .
* It returns a different value depending on whether or not the server is in retro mode
* @return the level at which abilities stop increasing in length
* /
public int getAbilityLengthCap ( ) {
if ( ! mcMMO . isRetroModeEnabled ( ) )
2019-01-25 06:19:04 +01:00
return config . getInt ( " Skills.General.Ability.Length.Standard.CapLevel " , 50 ) ;
2019-01-24 00:06:00 +01:00
else
2019-01-25 06:19:04 +01:00
return config . getInt ( " Skills.General.Ability.Length.RetroMode.CapLevel " , 500 ) ;
2019-01-24 00:06:00 +01:00
}
/ * *
* This returns the frequency at which abilities will increase in length
* It returns a different value depending on whether or not the server is in retro mode
* @return the number of levels required per ability length increase
* /
public int getAbilityLength ( ) {
if ( ! mcMMO . isRetroModeEnabled ( ) )
return config . getInt ( " Skills.General.Ability.Length.Standard.IncreaseLevel " , 5 ) ;
else
return config . getInt ( " Skills.General.Ability.Length.RetroMode.IncreaseLevel " , 50 ) ;
}
2013-10-01 17:01:11 +02:00
public int getEnchantBuff ( ) { return config . getInt ( " Skills.General.Ability.EnchantBuff " , 5 ) ; }
2012-12-24 22:56:25 +01:00
2019-01-24 00:06:00 +01:00
/ * *
* Grabs the max bonus level for a skill used in RNG calculations
* All max level values in the config are multiplied by 10 if the server is in retro mode as the values in the config are based around the new 1 - 100 skill system scaling
* A value of 10 in the file will be returned as 100 for retro mode servers to accommodate the change in scaling
* @param subSkillType target subskill
* @return the level at which this skills max benefits will be reached on the curve
* /
public int getMaxBonusLevel ( SubSkillType subSkillType ) {
2019-02-05 06:56:57 +01:00
String keyPath = subSkillType . getAdvConfigAddress ( ) + " .MaxBonusLevel. " ;
return mcMMO . isRetroModeEnabled ( ) ? config . getInt ( keyPath + " RetroMode " , 1000 ) : config . getInt ( keyPath + " Standard " , 100 ) ;
2019-01-24 00:06:00 +01:00
}
2019-01-09 04:52:52 +01:00
public int getMaxBonusLevel ( AbstractSubSkill abstractSubSkill ) {
2019-02-05 06:56:57 +01:00
return getMaxBonusLevel ( abstractSubSkill . getSubSkillType ( ) ) ;
2019-01-09 04:52:52 +01:00
}
2019-01-25 00:23:39 +01:00
public double getMaximumProbability ( SubSkillType subSkillType ) {
double maximumProbability = config . getDouble ( subSkillType . getAdvConfigAddress ( ) + " .ChanceMax " , 100 . 0D ) ;
return maximumProbability ;
}
public double getMaximumProbability ( AbstractSubSkill abstractSubSkill )
2019-01-09 04:52:52 +01:00
{
2019-02-05 06:56:57 +01:00
return getMaximumProbability ( abstractSubSkill . getSubSkillType ( ) ) ;
2019-01-09 04:52:52 +01:00
}
2019-01-14 10:22:14 +01:00
/* Notification Settings */
2019-01-26 17:14:06 +01:00
public boolean doesSkillCommandSendBlankLines ( )
{
return config . getBoolean ( " Feedback.SkillCommand.BlankLinesAboveHeader " , true ) ;
}
2019-01-09 04:52:52 +01:00
public boolean doesNotificationUseActionBar ( NotificationType notificationType )
{
2019-01-14 10:22:14 +01:00
return config . getBoolean ( " Feedback.ActionBarNotifications. " + notificationType . toString ( ) + " .Enabled " , true ) ;
}
public boolean doesNotificationSendCopyToChat ( NotificationType notificationType )
{
return config . getBoolean ( " Feedback.ActionBarNotifications. " + notificationType . toString ( ) + " .SendCopyOfMessageToChat " , false ) ;
2019-01-09 04:52:52 +01:00
}
2019-01-14 11:32:02 +01:00
public boolean useTitlesForXPEvent ( )
{
return config . getBoolean ( " Feedback.Events.XP.SendTitles " , true ) ;
}
2019-01-09 04:52:52 +01:00
/ *
* JSON Style Settings
* /
/ * public ChatColor getJSONStatHoverElementColor ( StatType statType , boolean isPrefix )
{
String keyAddress = isPrefix ? " Prefix " : " Value " ;
String keyLocation = " Style.JSON.Hover.Details. " + StringUtils . getCapitalized ( statType . toString ( ) ) + " . " + keyAddress + " .Color " ;
return getChatColorFromKey ( keyLocation ) ;
} * /
/ * *
* Used to color our details header in our JSON Hover Object tooltips
* @return the ChatColor for this element
* /
2019-01-26 17:27:58 +01:00
/ * public ChatColor getJSONStatHoverDetailsColor ( )
2019-01-09 04:52:52 +01:00
{
String keyLocation = " Style.JSON.Hover.Details.Header.Color " ;
return getChatColorFromKey ( keyLocation ) ;
}
public boolean isJSONDetailsHeaderBold ( )
{
return config . getBoolean ( " Style.JSON.Hover.Details.Header.Bold " ) ;
}
public boolean isJSONDetailsHeaderItalic ( )
{
return config . getBoolean ( " Style.JSON.Hover.Details.Header.Italics " ) ;
}
public boolean isJSONDetailsHeaderUnderlined ( )
{
return config . getBoolean ( " Style.JSON.Hover.Details.Header.Underlined " ) ;
}
public ChatColor getJSONStatHoverDescriptionColor ( )
{
String keyLocation = " Style.JSON.Hover.Details.Description.Color " ;
return getChatColorFromKey ( keyLocation ) ;
}
public boolean isJSONDetailsDescriptionBold ( )
{
return config . getBoolean ( " Style.JSON.Hover.Details.Description.Bold " ) ;
}
public boolean isJSONDetailsDescriptionItalic ( )
{
return config . getBoolean ( " Style.JSON.Hover.Details.Description.Italics " ) ;
}
public boolean isJSONDetailsDescriptionUnderlined ( )
{
return config . getBoolean ( " Style.JSON.Hover.Details.Description.Underlined " ) ;
}
2019-01-11 14:26:05 +01:00
public ChatColor getJSONActionBarColor ( NotificationType notificationType )
{
2019-01-13 00:58:35 +01:00
return getChatColor ( config . getString ( " Style.JSON.Notification. " + notificationType . toString ( ) + " .Color " ) ) ;
2019-01-26 17:27:58 +01:00
} * /
2019-01-11 14:26:05 +01:00
2019-01-09 04:52:52 +01:00
private ChatColor getChatColorFromKey ( String keyLocation ) {
2019-01-13 00:58:35 +01:00
String colorName = config . getString ( keyLocation ) ;
2019-01-09 04:52:52 +01:00
2019-01-11 14:26:05 +01:00
return getChatColor ( colorName ) ;
}
private ChatColor getChatColor ( String configColor ) {
2019-01-09 04:52:52 +01:00
for ( ChatColor chatColor : ChatColor . values ( ) ) {
2019-01-11 14:26:05 +01:00
if ( configColor . equalsIgnoreCase ( chatColor . getName ( ) ) )
2019-01-09 04:52:52 +01:00
return chatColor ;
}
//Invalid Color
2019-01-11 14:26:05 +01:00
System . out . println ( " [mcMMO] " + configColor + " is an invalid color value " ) ;
2019-01-09 04:52:52 +01:00
return ChatColor . WHITE ;
}
/ * public boolean isJSONStatHoverElementBold ( StatType statType , boolean isPrefix )
{
String keyAddress = isPrefix ? " Prefix " : " Value " ;
String keyLocation = " Style.JSON.Hover.Details. " + StringUtils . getCapitalized ( statType . toString ( ) ) + " . " + keyAddress + " .Bold " ;
return config . getBoolean ( keyLocation ) ;
}
public boolean isJSONStatHoverElementItalic ( StatType statType , boolean isPrefix )
{
String keyAddress = isPrefix ? " Prefix " : " Value " ;
String keyLocation = " Style.JSON.Hover.Details. " + StringUtils . getCapitalized ( statType . toString ( ) ) + " . " + keyAddress + " .Italics " ;
return config . getBoolean ( keyLocation ) ;
}
public boolean isJSONStatHoverElementUnderlined ( StatType statType , boolean isPrefix )
{
String keyAddress = isPrefix ? " Prefix " : " Value " ;
String keyLocation = " Style.JSON.Hover.Details. " + StringUtils . getCapitalized ( statType . toString ( ) ) + " . " + keyAddress + " .Underline " ;
return config . getBoolean ( keyLocation ) ;
} * /
2013-11-22 18:32:23 +01:00
2018-12-31 19:10:00 +01:00
/ * *
* Some SubSkills have the ability to retain classic functionality
2019-01-09 04:52:52 +01:00
* @param subSkillType SubSkillType with classic functionality
2018-12-31 19:10:00 +01:00
* @return true if the subskill is in classic mode
* /
2019-01-09 04:52:52 +01:00
public boolean isSubSkillClassic ( SubSkillType subSkillType )
2018-12-31 19:10:00 +01:00
{
2019-01-09 04:52:52 +01:00
return config . getBoolean ( subSkillType . getAdvConfigAddress ( ) + " .Classic " ) ;
2018-12-31 19:10:00 +01:00
}
2012-11-21 21:49:54 +01:00
/* ACROBATICS */
2013-10-01 17:01:11 +02:00
public double getDodgeDamageModifier ( ) { return config . getDouble ( " Skills.Acrobatics.Dodge.DamageModifier " , 2 . 0D ) ; }
2012-12-24 22:56:25 +01:00
2013-10-01 17:01:11 +02:00
public double getRollDamageThreshold ( ) { return config . getDouble ( " Skills.Acrobatics.Roll.DamageThreshold " , 7 . 0D ) ; }
2012-12-24 22:56:25 +01:00
2013-10-01 17:01:11 +02:00
public double getGracefulRollDamageThreshold ( ) { return config . getDouble ( " Skills.Acrobatics.GracefulRoll.DamageThreshold " , 14 . 0D ) ; }
2012-11-21 21:49:54 +01:00
2013-11-16 00:21:00 +01:00
/* ALCHEMY */
2019-01-17 17:46:10 +01:00
/*public int getCatalysisUnlockLevel() { return config.getInt("Skills.Alchemy.Catalysis.UnlockLevel", 100); }*/
2014-01-18 11:50:42 +01:00
public int getCatalysisMaxBonusLevel ( ) { return config . getInt ( " Skills.Alchemy.Catalysis.MaxBonusLevel " , 1000 ) ; }
2013-11-16 00:21:00 +01:00
public double getCatalysisMinSpeed ( ) { return config . getDouble ( " Skills.Alchemy.Catalysis.MinSpeed " , 1 . 0D ) ; }
public double getCatalysisMaxSpeed ( ) { return config . getDouble ( " Skills.Alchemy.Catalysis.MaxSpeed " , 4 . 0D ) ; }
2014-01-18 11:50:42 +01:00
2019-01-17 17:46:10 +01:00
//public int getConcoctionsTierLevel(Alchemy.Tier tier) { return config.getInt("Skills.Alchemy.Rank_Levels.Rank_" + rank); }
2013-11-16 00:21:00 +01:00
2012-11-21 21:49:54 +01:00
/* ARCHERY */
2019-01-03 13:32:46 +01:00
public double getSkillShotRankDamageMultiplier ( ) { return config . getDouble ( " Skills.Archery.SkillShot.RankDamageMultiplier " , 10 . 0D ) ; }
2013-10-01 17:01:11 +02:00
public double getSkillShotDamageMax ( ) { return config . getDouble ( " Skills.Archery.SkillShot.MaxDamage " , 9 . 0D ) ; }
2012-11-21 21:49:54 +01:00
2014-06-29 16:38:40 +02:00
public double getDazeBonusDamage ( ) { return config . getDouble ( " Skills.Archery.Daze.BonusDamage " , 4 . 0D ) ; }
2012-11-21 21:49:54 +01:00
2013-10-01 17:01:11 +02:00
public double getForceMultiplier ( ) { return config . getDouble ( " Skills.Archery.ForceMultiplier " , 2 . 0D ) ; }
2013-05-15 07:19:14 +02:00
2012-11-21 21:49:54 +01:00
/* AXES */
2019-01-03 13:32:46 +01:00
public double getAxeMasteryRankDamageMultiplier ( ) { return config . getDouble ( " Skills.Axes.AxeMastery.RankDamageMultiplier " , 1 . 0D ) ; }
2012-11-21 21:49:54 +01:00
2019-01-04 16:58:39 +01:00
public double getCriticalStrikesPVPModifier ( ) { return config . getDouble ( " Skills.Axes.CriticalStrikes.PVP_Modifier " , 1 . 5D ) ; }
public double getCriticalStrikesPVEModifier ( ) { return config . getDouble ( " Skills.Axes.CriticalStrikes.PVE_Modifier " , 2 . 0D ) ; }
2012-12-24 22:56:25 +01:00
2013-10-01 17:01:11 +02:00
public double getGreaterImpactChance ( ) { return config . getDouble ( " Skills.Axes.GreaterImpact.Chance " , 25 . 0D ) ; }
public double getGreaterImpactModifier ( ) { return config . getDouble ( " Skills.Axes.GreaterImpact.KnockbackModifier " , 1 . 5D ) ; }
public double getGreaterImpactBonusDamage ( ) { return config . getDouble ( " Skills.Axes.GreaterImpact.BonusDamage " , 2 . 0D ) ; }
2012-12-02 22:54:03 +01:00
2019-01-25 00:23:39 +01:00
public int getArmorImpactIncreaseLevel ( ) {
int increaseLevel = config . getInt ( " Skills.Axes.ArmorImpact.IncreaseLevel " , 5 ) ;
if ( mcMMO . isRetroModeEnabled ( ) )
return increaseLevel * 10 ;
return increaseLevel ;
}
2013-10-01 17:01:11 +02:00
public double getImpactChance ( ) { return config . getDouble ( " Skills.Axes.ArmorImpact.Chance " , 25 . 0D ) ; }
public double getArmorImpactMaxDurabilityDamage ( ) { return config . getDouble ( " Skills.Axes.ArmorImpact.MaxPercentageDurabilityDamage " , 20 . 0D ) ; }
2012-12-24 22:56:25 +01:00
2014-10-31 00:48:03 +01:00
public double getSkullSplitterModifier ( ) { return config . getDouble ( " Skills.Axes.SkullSplitter.DamageModifier " , 2 . 0D ) ; }
2013-01-15 23:00:56 +01:00
2012-11-21 21:49:54 +01:00
/* EXCAVATION */
2012-11-26 01:40:42 +01:00
//Nothing to configure, everything is already configurable in config.yml
2012-12-24 22:56:25 +01:00
2012-11-21 21:49:54 +01:00
/* FISHING */
2019-01-17 17:46:10 +01:00
//public int getFishingTierLevel(int rank) { return config.getInt("Skills.Fishing.Rank_Levels.Rank_" + rank); }
public double getShakeChance ( int rank ) { return config . getDouble ( " Skills.Fishing.ShakeChance.Rank_ " + rank ) ; }
public int getFishingVanillaXPModifier ( int rank ) { return config . getInt ( " Skills.Fishing.VanillaXPMultiplier.Rank_ " + rank ) ; }
2013-01-11 00:21:18 +01:00
2013-10-01 17:01:11 +02:00
public int getFishermanDietRankChange ( ) { return config . getInt ( " Skills.Fishing.FishermansDiet.RankChange " , 200 ) ; }
2013-01-22 06:47:56 +01:00
2019-01-17 17:46:10 +01:00
/ * public int getIceFishingUnlockLevel ( ) { return config . getInt ( " Skills.Fishing.IceFishing.UnlockLevel " , 50 ) ; }
2013-05-01 16:18:19 +02:00
2019-01-17 17:46:10 +01:00
public int getMasterAnglerUnlockLevel ( ) { return config . getInt ( " Skills.Fishing.MasterAngler.UnlockLevel " , 125 ) ; } * /
2013-10-10 19:12:25 +02:00
public double getMasterAnglerBoatModifier ( ) { return config . getDouble ( " Skills.Fishing.MasterAngler.BoatModifier " , 2 . 0 ) ; }
public double getMasterAnglerBiomeModifier ( ) { return config . getDouble ( " Skills.Fishing.MasterAngler.BiomeModifier " , 2 . 0 ) ; }
2012-11-21 21:49:54 +01:00
/* HERBALISM */
2013-10-01 17:01:11 +02:00
public int getFarmerDietRankChange ( ) { return config . getInt ( " Skills.Herbalism.FarmersDiet.RankChange " , 200 ) ; }
2012-12-24 22:56:25 +01:00
2013-10-01 17:01:11 +02:00
public int getGreenThumbStageChange ( ) { return config . getInt ( " Skills.Herbalism.GreenThumb.StageChange " , 200 ) ; }
2013-02-25 15:58:25 +01:00
2012-11-21 21:49:54 +01:00
/* MINING */
2019-01-17 17:46:10 +01:00
public int getBlastMiningRankLevel ( int rank ) { return config . getInt ( " Skills.Mining.BlastMining.Rank_Levels.Rank_ " + rank ) ; }
public double getBlastDamageDecrease ( int rank ) { return config . getDouble ( " Skills.Mining.BlastMining.BlastDamageDecrease.Rank_ " + rank ) ; }
public double getOreBonus ( int rank ) { return config . getDouble ( " Skills.Mining.BlastMining.OreBonus.Rank_ " + rank ) ; }
public double getDebrisReduction ( int rank ) { return config . getDouble ( " Skills.Mining.BlastMining.DebrisReduction.Rank_ " + rank ) ; }
public int getDropMultiplier ( int rank ) { return config . getInt ( " Skills.Mining.BlastMining.DropMultiplier.Rank_ " + rank ) ; }
public double getBlastRadiusModifier ( int rank ) { return config . getDouble ( " Skills.Mining.BlastMining.BlastRadiusModifier.Rank_ " + rank ) ; }
2013-02-27 21:45:15 +01:00
2012-11-21 21:49:54 +01:00
/* REPAIR */
2013-10-01 17:01:11 +02:00
public double getRepairMasteryMaxBonus ( ) { return config . getDouble ( " Skills.Repair.RepairMastery.MaxBonusPercentage " , 200 . 0D ) ; }
2019-01-24 00:06:00 +01:00
public int getRepairMasteryMaxLevel ( ) { return config . getInt ( " Skills.Repair.RepairMastery.MaxBonusLevel " , 100 ) ; }
2012-12-24 22:56:25 +01:00
2013-01-11 00:21:18 +01:00
/* Arcane Forging */
2019-01-31 23:07:03 +01:00
//public int getArcaneForgingRankLevel(int rank) { return config.getInt("Skills.Repair.ArcaneForging.Rank_Levels.Rank_" + rank); }
2013-09-12 20:18:13 +02:00
2013-10-01 17:01:11 +02:00
public boolean getArcaneForgingEnchantLossEnabled ( ) { return config . getBoolean ( " Skills.Repair.ArcaneForging.May_Lose_Enchants " , true ) ; }
2019-01-17 17:46:10 +01:00
public double getArcaneForgingKeepEnchantsChance ( int rank ) { return config . getDouble ( " Skills.Repair.ArcaneForging.Keep_Enchants_Chance.Rank_ " + rank ) ; }
2013-09-30 16:59:54 +02:00
2013-10-01 17:01:11 +02:00
public boolean getArcaneForgingDowngradeEnabled ( ) { return config . getBoolean ( " Skills.Repair.ArcaneForging.Downgrades_Enabled " , true ) ; }
2019-01-17 17:46:10 +01:00
public double getArcaneForgingDowngradeChance ( int rank ) { return config . getDouble ( " Skills.Repair.ArcaneForging.Downgrades_Chance.Rank_ " + rank ) ; }
2013-01-11 00:21:18 +01:00
2013-03-06 18:31:48 +01:00
/* SALVAGE */
2019-01-31 23:07:03 +01:00
//public double getSalvageMaxPercentage() { return config.getDouble("Skills.Salvage.MaxPercentage", 100.0D); }
//public int getSalvageMaxPercentageLevel() { return config.getInt("Skills.Salvage.MaxPercentageLevel", 1000); }
2013-03-06 18:31:48 +01:00
public boolean getArcaneSalvageEnchantDowngradeEnabled ( ) { return config . getBoolean ( " Skills.Salvage.ArcaneSalvage.EnchantDowngradeEnabled " , true ) ; }
public boolean getArcaneSalvageEnchantLossEnabled ( ) { return config . getBoolean ( " Skills.Salvage.ArcaneSalvage.EnchantLossEnabled " , true ) ; }
2019-01-17 17:46:10 +01:00
//public int getArcaneSalvageRankLevel(int rank) { return config.getInt("Skills.Salvage.ArcaneSalvage.Rank_Levels.Rank_" + rank); }
public double getArcaneSalvageExtractFullEnchantsChance ( int rank ) { return config . getDouble ( " Skills.Salvage.ArcaneSalvage.ExtractFullEnchant.Rank_ " + rank ) ; }
public double getArcaneSalvageExtractPartialEnchantsChance ( int rank ) { return config . getDouble ( " Skills.Salvage.ArcaneSalvage.ExtractPartialEnchant.Rank_ " + rank ) ; }
2013-03-06 18:31:48 +01:00
2013-01-23 23:07:26 +01:00
/* SMELTING */
2019-01-24 00:06:00 +01:00
public int getBurnModifierMaxLevel ( ) { return config . getInt ( " Skills.Smelting.FuelEfficiency.MaxBonusLevel " , 100 ) ; }
2013-10-01 17:01:11 +02:00
public double getBurnTimeMultiplier ( ) { return config . getDouble ( " Skills.Smelting.FuelEfficiency.Multiplier " , 3 . 0D ) ; }
2013-01-23 23:07:26 +01:00
2019-01-17 17:46:10 +01:00
/*public int getFluxMiningUnlockLevel() { return config.getInt("Skills.Smelting.FluxMining.UnlockLevel", 250); }*/
2013-10-01 17:01:11 +02:00
public double getFluxMiningChance ( ) { return config . getDouble ( " Skills.Smelting.FluxMining.Chance " , 33 . 0D ) ; }
2013-01-23 23:07:26 +01:00
2019-01-17 17:46:10 +01:00
public int getSmeltingRankLevel ( int rank ) { return config . getInt ( " Skills.Smelting.Rank_Levels.Rank_ " + rank ) ; }
2013-10-01 17:01:11 +02:00
2019-01-17 17:46:10 +01:00
public int getSmeltingVanillaXPBoostMultiplier ( int rank ) { return config . getInt ( " Skills.Smelting.VanillaXPMultiplier.Rank_ " + rank ) ; }
2013-01-23 23:07:26 +01:00
2012-11-21 21:49:54 +01:00
/* SWORDS */
2019-01-22 00:14:01 +01:00
public double getRuptureDamagePlayer ( ) { return config . getDouble ( " Skills.Swords.Rupture.DamagePlayer " , 1 . 0 ) ; }
public double getRuptureDamageMobs ( ) { return config . getDouble ( " Skills.Swords.Rupture.DamageMobs " , 2 . 0 ) ; }
2014-10-11 12:18:31 +02:00
2019-01-24 00:06:00 +01:00
public int getRuptureMaxTicks ( ) { return config . getInt ( " Skills.Swords.Rupture.MaxTicks " , 8 ) ; }
2019-01-22 00:14:01 +01:00
public int getRuptureBaseTicks ( ) { return config . getInt ( " Skills.Swords.Rupture.BaseTicks " , 2 ) ; }
2012-11-21 21:49:54 +01:00
2019-01-04 16:58:39 +01:00
public double getCounterModifier ( ) { return config . getDouble ( " Skills.Swords.CounterAttack.DamageModifier " , 2 . 0D ) ; }
2012-12-24 22:56:25 +01:00
2013-10-01 17:01:11 +02:00
public double getSerratedStrikesModifier ( ) { return config . getDouble ( " Skills.Swords.SerratedStrikes.DamageModifier " , 4 . 0D ) ; }
2019-01-22 00:14:01 +01:00
public int getSerratedStrikesTicks ( ) { return config . getInt ( " Skills.Swords.SerratedStrikes.RuptureTicks " , 5 ) ; }
2013-01-13 13:05:53 +01:00
2012-11-21 21:49:54 +01:00
/* TAMING */
2019-01-24 00:29:31 +01:00
//public int getGoreRuptureTicks() { return config.getInt("Skills.Taming.Gore.RuptureTicks", 2); }
2013-10-01 17:01:11 +02:00
public double getGoreModifier ( ) { return config . getDouble ( " Skills.Taming.Gore.Modifier " , 2 . 0D ) ; }
2012-11-21 21:49:54 +01:00
2019-01-17 17:46:10 +01:00
/*public int getFastFoodUnlock() { return config.getInt("Skills.Taming.FastFood.UnlockLevel", 50); }*/
2019-01-31 23:07:03 +01:00
public double getFastFoodChance ( ) { return config . getDouble ( " Skills.Taming.FastFoodService.Chance " , 50 . 0D ) ; }
2019-01-28 22:14:15 +01:00
public double getPummelChance ( ) { return config . getDouble ( " Skills.Taming.Pummel.Chance " , 10 . 0D ) ; }
2012-12-24 22:56:25 +01:00
2019-01-31 23:07:03 +01:00
//public int getEnviromentallyAwareUnlock() { return config.getInt("Skills.Taming.EnvironmentallyAware.UnlockLevel", 100); }
2012-11-21 21:49:54 +01:00
2019-01-17 17:46:10 +01:00
/*public int getThickFurUnlock() { return config.getInt("Skills.Taming.ThickFur.UnlockLevel", 250); }*/
2013-10-01 17:01:11 +02:00
public double getThickFurModifier ( ) { return config . getDouble ( " Skills.Taming.ThickFur.Modifier " , 2 . 0D ) ; }
2012-12-24 22:56:25 +01:00
2019-01-17 17:46:10 +01:00
/*public int getHolyHoundUnlock() {return config.getInt("Skills.Taming.HolyHound.UnlockLevel", 375); }*/
2013-02-23 00:47:34 +01:00
2019-01-17 17:46:10 +01:00
/*public int getShockProofUnlock() { return config.getInt("Skills.Taming.ShockProof.UnlockLevel", 500); }*/
2013-10-01 17:01:11 +02:00
public double getShockProofModifier ( ) { return config . getDouble ( " Skills.Taming.ShockProof.Modifier " , 6 . 0D ) ; }
2012-11-21 21:49:54 +01:00
2019-01-17 17:46:10 +01:00
/*public int getSharpenedClawsUnlock() { return config.getInt("Skills.Taming.SharpenedClaws.UnlockLevel", 750); }*/
2013-10-01 17:01:11 +02:00
public double getSharpenedClawsBonus ( ) { return config . getDouble ( " Skills.Taming.SharpenedClaws.Bonus " , 2 . 0D ) ; }
2013-01-13 13:05:53 +01:00
2014-03-23 13:41:31 +01:00
public double getMinHorseJumpStrength ( ) { return config . getDouble ( " Skills.Taming.CallOfTheWild.MinHorseJumpStrength " , 0 . 7D ) ; }
2013-11-10 19:54:45 +01:00
public double getMaxHorseJumpStrength ( ) { return config . getDouble ( " Skills.Taming.CallOfTheWild.MaxHorseJumpStrength " , 2 . 0D ) ; }
2012-11-21 21:49:54 +01:00
/* UNARMED */
2019-01-25 00:23:39 +01:00
2013-12-02 00:43:17 +01:00
public boolean getDisarmProtected ( ) { return config . getBoolean ( " Skills.Unarmed.Disarm.AntiTheft " , false ) ; }
2013-01-13 13:05:53 +01:00
2012-11-21 21:49:54 +01:00
/* WOODCUTTING */
2019-01-17 17:46:10 +01:00
/*public int getLeafBlowUnlockLevel() { return config.getInt("Skills.Woodcutting.LeafBlower.UnlockLevel", 100); }*/
2013-01-22 17:52:06 +01:00
2013-05-02 13:56:29 +02:00
/* KRAKEN STUFF */
public boolean getKrakenEnabled ( ) { return config . getBoolean ( " Kraken.Enabled " , true ) ; }
public int getKrakenTriesBeforeRelease ( ) { return config . getInt ( " Kraken.Tries_Before_Release " , 50 ) ; }
2013-09-12 20:18:13 +02:00
public double getKrakenHealth ( ) { return config . getDouble ( " Kraken.Health " , 50 . 0D ) ; }
2013-05-02 13:56:29 +02:00
public String getKrakenName ( ) { return config . getString ( " Kraken.Name " , " The Kraken " ) ; }
2013-10-20 16:38:51 +02:00
public int getKrakenAttackInterval ( ) { return config . getInt ( " Kraken.Attack_Interval_Seconds " , 1 ) ; }
public double getKrakenAttackDamage ( ) { return config . getDouble ( " Kraken.Attack_Damage " , 1 . 0D ) ; }
public boolean getKrakenGlobalEffectsEnabled ( ) { return config . getBoolean ( " Kraken.Global_Effects " , false ) ; }
public boolean getKrakenEscapeAllowed ( ) { return config . getBoolean ( " Kraken.Allow_Escaping " , false ) ; }
2013-09-12 21:53:43 +02:00
public String getServerUnleashMessage ( ) { return config . getString ( " Kraken.Unleashed_Message.Server " , " " ) ; }
public String getPlayerUnleashMessage ( ) { return config . getString ( " Kraken.Unleashed_Message.Player " , " " ) ; }
public String getPlayerDefeatMessage ( ) { return config . getString ( " Kraken.Defeated_Message.Killed " , " " ) ; }
public String getPlayerEscapeMessage ( ) { return config . getString ( " Kraken.Defeated_Message.Escape " , " " ) ; }
2012-11-21 21:49:54 +01:00
}