Class MyPetGlobal.LevelSystem.Curve

java.lang.Object
de.Keyle.MyPet.api.MyPetGlobal.LevelSystem.Curve
Enclosing class:
MyPetGlobal.LevelSystem

public static final class MyPetGlobal.LevelSystem.Curve extends Object
Tunable parameters for the built-in Linear/Power/Exponential XP curves.
  • Field Details

    • LINEAR_BASE

      public static final ConfigKey<Double> LINEAR_BASE
      Experience each level costs under the Linear curve.

      MyPet.LevelSystem.Curve.Linear.Base -- default 17.0.

    • POWER_FACTOR

      public static final ConfigKey<Double> POWER_FACTOR
      Scales the whole Power curve.

      MyPet.LevelSystem.Curve.Power.Factor -- default 7.0.

    • POWER_EXPONENT

      public static final ConfigKey<Double> POWER_EXPONENT
      How sharply cost accelerates under the Power curve. 1.0 behaves like Linear.

      MyPet.LevelSystem.Curve.Power.Exponent -- default 1.5.

    • EXPONENTIAL_BASE

      public static final ConfigKey<Double> EXPONENTIAL_BASE
      Experience needed for level 2 under the Exponential curve.

      MyPet.LevelSystem.Curve.Exponential.Base -- default 10.0.

    • EXPONENTIAL_GROWTH

      public static final ConfigKey<Double> EXPONENTIAL_GROWTH
      Cost multiplier per level under the Exponential curve. 1.1 makes each level cost 10% more than the last.

      MyPet.LevelSystem.Curve.Exponential.Growth -- default 1.1.