Package de.Keyle.MyPet.api
Class MyPetGlobal.LevelSystem.Experience
java.lang.Object
de.Keyle.MyPet.api.MyPetGlobal.LevelSystem.Experience
- Enclosing class:
MyPetGlobal.LevelSystem
How pets earn and lose experience.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMultipliers applied to experience a pet earns. -
Field Summary
FieldsModifier and TypeFieldDescriptionWhether losing experience may cost a pet whole levels.Whether a pet earns passive experience from its owner's kills even when it has a damage skill of its own.Whether a pet earns experience in proportion to the damage it dealt, rather than only for landing the kill.Worlds in which pets earn no experience.Whether experience lost on death drops on the ground for anyone to pick up.Level past which a pet stops gaining experience.Flat experience a pet loses on death.Percentage of its experience a pet loses on death.Percentage of a kill's experience a pet earns passively when its owner makes the kill.Spawn reasons whose mobs grant no experience, asCreatureSpawnEvent.SpawnReasonnames. -
Method Summary
-
Field Details
-
LOSS_PERCENT
Percentage of its experience a pet loses on death.MyPet.Exp.Loss.Percent-- default0. -
LOSS_FIXED
Flat experience a pet loses on death.MyPet.Exp.Loss.Fixed-- default0.0. -
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-- defaultfalse. -
DROP_LOST_EXP
Whether experience lost on death drops on the ground for anyone to pick up.MyPet.Exp.Loss.Drop-- defaulttrue. -
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-- defaulttrue. -
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-- defaulttrue. -
PASSIVE_PERCENT_PER_MONSTER
Percentage of a kill's experience a pet earns passively when its owner makes the kill.MyPet.Exp.Passive.PercentPerMonster-- default25. -
LEVEL_CAP
Level past which a pet stops gaining experience.MyPet.Exp.LevelCap-- default100. -
PREVENT_FROM_SPAWN_REASON
Spawn reasons whose mobs grant no experience, asCreatureSpawnEvent.SpawnReasonnames. 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
Worlds in which pets earn no experience.MyPet.Exp.Disabled-Worlds.
-