Class MyPetGlobal.LevelSystem.Experience

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

public static final class MyPetGlobal.LevelSystem.Experience extends Object
How pets earn and lose experience.
  • Field Details

    • LOSS_PERCENT

      public static final ConfigKey<Integer> LOSS_PERCENT
      Percentage of its experience a pet loses on death.

      MyPet.Exp.Loss.Percent -- default 0.

    • LOSS_FIXED

      public static final ConfigKey<Double> LOSS_FIXED
      Flat experience a pet loses on death.

      MyPet.Exp.Loss.Fixed -- default 0.0.

    • ALLOW_LEVEL_DOWNGRADE

      public static final ConfigKey<Boolean> ALLOW_LEVEL_DOWNGRADE
      Whether losing experience may cost a pet whole levels. Note the misspelling in the YAML path, which is kept for compatibility with existing configs.

      MyPet.Exp.Loss.Allow-Level-Drowngrade -- default false.

    • DROP_LOST_EXP

      public static final ConfigKey<Boolean> DROP_LOST_EXP
      Whether experience lost on death drops on the ground for anyone to pick up.

      MyPet.Exp.Loss.Drop -- default true.

    • DAMAGE_WEIGHTED_EXPERIENCE_DISTRIBUTION

      public static final ConfigKey<Boolean> DAMAGE_WEIGHTED_EXPERIENCE_DISTRIBUTION
      Whether a pet earns experience in proportion to the damage it dealt, rather than only for landing the kill. A pet that dealt half the damage earns half the experience.

      MyPet.Exp.DamageWeightedExperienceDistribution -- default true.

    • ALWAYS_GRANT_PASSIVE_XP

      public static final ConfigKey<Boolean> ALWAYS_GRANT_PASSIVE_XP
      Whether a pet earns passive experience from its owner's kills even when it has a damage skill of its own.

      MyPet.Exp.Passive.Always-Grant-Passive-XP -- default true.

    • PASSIVE_PERCENT_PER_MONSTER

      public static final ConfigKey<Integer> PASSIVE_PERCENT_PER_MONSTER
      Percentage of a kill's experience a pet earns passively when its owner makes the kill.

      MyPet.Exp.Passive.PercentPerMonster -- default 25.

    • LEVEL_CAP

      public static final ConfigKey<Integer> LEVEL_CAP
      Level past which a pet stops gaining experience.

      MyPet.Exp.LevelCap -- default 100.

    • PREVENT_FROM_SPAWN_REASON

      public static final ConfigKey<Set<String>> PREVENT_FROM_SPAWN_REASON
      Spawn reasons whose mobs grant no experience, as CreatureSpawnEvent.SpawnReason names. Unrecognised names are dropped on load. Spawn reasons are not persisted, so this stops applying to mobs that survive a restart.

      MyPet.Exp.Gain.PreventFromSpawnReason.

    • DISABLED_WORLDS

      public static final ConfigKey<Set<String>> DISABLED_WORLDS
      Worlds in which pets earn no experience.

      MyPet.Exp.Disabled-Worlds.