mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Converting some remaining float literals to double literals
This commit is contained in:
parent
fc6c6ed2c4
commit
94df19bdb4
@ -12,7 +12,7 @@ import java.util.HashMap;
|
|||||||
@ConfigSerializable
|
@ConfigSerializable
|
||||||
public class ConfigExperience {
|
public class ConfigExperience {
|
||||||
|
|
||||||
private static final double GLOBAL_XP_MULT_DEFAULT = 1.0F;
|
private static final double GLOBAL_XP_MULT_DEFAULT = 1.0;
|
||||||
|
|
||||||
@Setting(value = "Global-XP-Multiplier", comment = "This multiplier is applied at the very end of every XP gain, you can use it as a shortcut to increase or decrease xp gains across the entire plugin" +
|
@Setting(value = "Global-XP-Multiplier", comment = "This multiplier is applied at the very end of every XP gain, you can use it as a shortcut to increase or decrease xp gains across the entire plugin" +
|
||||||
"\nThis value is temporarily overridden by xprate events." +
|
"\nThis value is temporarily overridden by xprate events." +
|
||||||
|
@ -9,7 +9,7 @@ import java.util.HashMap;
|
|||||||
public class ConfigExperienceAcrobatics {
|
public class ConfigExperienceAcrobatics {
|
||||||
|
|
||||||
private final static HashMap<String, Integer> ACROBATICS_DEFAULT_XP_MAP;
|
private final static HashMap<String, Integer> ACROBATICS_DEFAULT_XP_MAP;
|
||||||
private static final double FEATHER_FALL_MULTIPLIER_DEFAULT = 2.0F;
|
private static final double FEATHER_FALL_MULTIPLIER_DEFAULT = 2.0;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
ACROBATICS_DEFAULT_XP_MAP = new HashMap<>();
|
ACROBATICS_DEFAULT_XP_MAP = new HashMap<>();
|
||||||
|
@ -6,7 +6,7 @@ import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
|||||||
@ConfigSerializable
|
@ConfigSerializable
|
||||||
public class ConfigExperienceArchery {
|
public class ConfigExperienceArchery {
|
||||||
|
|
||||||
public static final double DISTANCE_MULTIPLIER_DEFAULT = 0.025F;
|
public static final double DISTANCE_MULTIPLIER_DEFAULT = 0.025;
|
||||||
|
|
||||||
@Setting(value = "Distance-Multiplier", comment = "The distance multiplier is multiplied against the distance an " +
|
@Setting(value = "Distance-Multiplier", comment = "The distance multiplier is multiplied against the distance an " +
|
||||||
"arrow travels before hitting its target to determine final XP values awarded." +
|
"arrow travels before hitting its target to determine final XP values awarded." +
|
||||||
|
@ -9,7 +9,7 @@ import java.util.HashMap;
|
|||||||
@ConfigSerializable
|
@ConfigSerializable
|
||||||
public class ConfigExperienceRepair {
|
public class ConfigExperienceRepair {
|
||||||
|
|
||||||
private static final double REPAIR_XP_BASE_DEFAULT = 1000.0F;
|
private static final double REPAIR_XP_BASE_DEFAULT = 1000.0;
|
||||||
|
|
||||||
private static final HashMap<ItemMaterialCategory, Double> ITEM_MATERIAL_XP_MULTIPLIER_DEFAULT;
|
private static final HashMap<ItemMaterialCategory, Double> ITEM_MATERIAL_XP_MULTIPLIER_DEFAULT;
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
|||||||
public class ConfigExperienceFormulaExponential {
|
public class ConfigExperienceFormulaExponential {
|
||||||
|
|
||||||
private static final int BASE_DEFAULT = 2000;
|
private static final int BASE_DEFAULT = 2000;
|
||||||
private static final double MULTIPLIER_DEFAULT = 0.1f;
|
private static final double MULTIPLIER_DEFAULT = 0.1;
|
||||||
private static final double EXPONENT_DEFAULT = 1.80f;
|
private static final double EXPONENT_DEFAULT = 1.80;
|
||||||
|
|
||||||
@Setting(value = "Base-Amount", comment = "Default value: " + BASE_DEFAULT)
|
@Setting(value = "Base-Amount", comment = "Default value: " + BASE_DEFAULT)
|
||||||
private int baseModifier = BASE_DEFAULT;
|
private int baseModifier = BASE_DEFAULT;
|
||||||
|
@ -7,7 +7,7 @@ import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
|||||||
public class ConfigExperienceFormulaLinear {
|
public class ConfigExperienceFormulaLinear {
|
||||||
|
|
||||||
private static final int BASE_DEFAULT = 1020;
|
private static final int BASE_DEFAULT = 1020;
|
||||||
private static final double MULTIPLIER_DEFAULT = 20.0F;
|
private static final double MULTIPLIER_DEFAULT = 20.0;
|
||||||
|
|
||||||
@Setting(value = "Base-Amount", comment = "Default value: " + BASE_DEFAULT)
|
@Setting(value = "Base-Amount", comment = "Default value: " + BASE_DEFAULT)
|
||||||
private int baseModifier = BASE_DEFAULT;
|
private int baseModifier = BASE_DEFAULT;
|
||||||
|
@ -12,7 +12,7 @@ import static com.gmail.nossr50.datatypes.skills.PrimarySkillType.*;
|
|||||||
public class ConfigLevelingDiminishedReturns {
|
public class ConfigLevelingDiminishedReturns {
|
||||||
|
|
||||||
private static final HashMap<PrimarySkillType, Integer> SKILL_THRESHOLDS_DEFAULT;
|
private static final HashMap<PrimarySkillType, Integer> SKILL_THRESHOLDS_DEFAULT;
|
||||||
private static final float GUARANTEED_MIN_DEFAULT = 0.05f;
|
private static final double GUARANTEED_MIN_DEFAULT = 0.05;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
SKILL_THRESHOLDS_DEFAULT = new HashMap<>();
|
SKILL_THRESHOLDS_DEFAULT = new HashMap<>();
|
||||||
@ -49,8 +49,8 @@ public class ConfigLevelingDiminishedReturns {
|
|||||||
|
|
||||||
@Setting(value = "Guaranteed-Minimum", comment = "The multiplier applied to an XP gain when a player has reached diminishing returns to guarantee that some XP is still gained." +
|
@Setting(value = "Guaranteed-Minimum", comment = "The multiplier applied to an XP gain when a player has reached diminishing returns to guarantee that some XP is still gained." +
|
||||||
"\nPlayers will gain (raw XP * guaranteedMinimum) if they are under sever enough diminishing return penalty (ie their XP would normally fall below this value)" +
|
"\nPlayers will gain (raw XP * guaranteedMinimum) if they are under sever enough diminishing return penalty (ie their XP would normally fall below this value)" +
|
||||||
"\nDefault value: ")
|
"\nDefault value: "+GUARANTEED_MIN_DEFAULT)
|
||||||
private float guaranteedMinimums = GUARANTEED_MIN_DEFAULT;
|
private double guaranteedMinimums = GUARANTEED_MIN_DEFAULT;
|
||||||
|
|
||||||
public int getSkillThreshold(PrimarySkillType primarySkillType) {
|
public int getSkillThreshold(PrimarySkillType primarySkillType) {
|
||||||
if (skillThresholds.get(primarySkillType) == null)
|
if (skillThresholds.get(primarySkillType) == null)
|
||||||
@ -59,7 +59,7 @@ public class ConfigLevelingDiminishedReturns {
|
|||||||
return skillThresholds.get(primarySkillType);
|
return skillThresholds.get(primarySkillType);
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getGuaranteedMinimums() {
|
public double getGuaranteedMinimums() {
|
||||||
return guaranteedMinimums;
|
return guaranteedMinimums;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user