Package de.Keyle.MyPet.api.skill.skills
Interface Lightning
- All Superinterfaces:
OnHitSkill,Skill
Skill that gives the pet a chance to strike the target with a lightning bolt on hit.
The lightning deals configurable bonus damage in addition to the visual/sound effect.
Both the trigger chance and damage scale with the pet's skilltree level.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the upgrade computer controlling the percent chance to strike lightning on hit.Returns the upgrade computer controlling the bonus damage dealt by the lightning strike.Methods inherited from interface de.Keyle.MyPet.api.skill.OnHitSkill
apply, triggerMethods inherited from interface de.Keyle.MyPet.api.skill.skilltree.Skill
applyState, getName, getName, getPet, getState, getUpgradeMessage, isActive, reset, toPrettyComponent
-
Method Details
-
getChance
UpgradeComputer<Integer> getChance()Returns the upgrade computer controlling the percent chance to strike lightning on hit.- Returns:
- the upgrade computer for the percent chance to strike lightning on hit
-
getDamage
UpgradeComputer<Number> getDamage()Returns the upgrade computer controlling the bonus damage dealt by the lightning strike.- Returns:
- the upgrade computer for the bonus damage dealt by the lightning strike
-