WindRunnerSkill

public class WindRunnerSkill extends SkillBonus

Wind Runner (PASSIVE) - Gain speed boost on successful hits. Tier 3 unlock.

Constructors

Link copied to clipboard
public void WindRunnerSkill()

Properties

Link copied to clipboard
public final static String SKILL_ID

Inherited properties

Link copied to clipboard
protected final String bonusName
Link copied to clipboard
protected final SkillBonusType bonusType
Link copied to clipboard
Link copied to clipboard
protected final String description
Link copied to clipboard
protected boolean enabled
Link copied to clipboard
public final static double MAX_DEFENSIVE_REDUCTION
Hard cap on how much any single defensive skill may reduce incoming damage.
Link copied to clipboard
protected final int requiredLevel
Link copied to clipboard
protected final String skillId
Link copied to clipboard
protected final SkillType skillType
Link copied to clipboard
protected final int unlockTier

Functions

Link copied to clipboard
public boolean affectsDamage()
Returns whether this skill affects damage when used offensively.
Link copied to clipboard
public void applyBonus(Player player, int skillLevel)
Applies this bonus to a player based on their skill level.
Link copied to clipboard
public void applySpeedBoost(Player player)
Link copied to clipboard
public double getBonusValue(int skillLevel)
Gets the numeric value of the bonus at a given skill level.
Link copied to clipboard
public String getFormattedBonus(int skillLevel)
Gets a formatted string describing the bonus at a given level.
Link copied to clipboard
public List<String> getLoreDescription(int skillLevel)
Gets the lore description for the skill menu display.
Link copied to clipboard
public boolean isActive(Player player)
Checks if this skill is currently active for a player.
Link copied to clipboard
public void onActivate(Player player)
Called when a player activates (selects) this skill.
Link copied to clipboard
public void onDeactivate(Player player)
Called when a player deactivates (deselects) this skill.
Link copied to clipboard
public void removeBonus(Player player)
Removes this bonus from a player.
Link copied to clipboard
public void shutdown()
Called on plugin shutdown.

Inherited functions

Link copied to clipboard
protected String applyFormattedBonusTemplate(Map<String, String> replacements)
Applies placeholder replacements to the formatted bonus template from config.
Link copied to clipboard
protected List<String> applyLoreTemplates(Map<String, String> replacements)
Applies placeholder replacements to lore templates from config.
Link copied to clipboard
public boolean canUnlock(int skillLevel)
Checks if this skill can be unlocked at the given level.
Link copied to clipboard
public static double clampDefensiveReduction(double reduction)
Clamps a defensive damage reduction into the safe [0, MAX_DEFENSIVE_REDUCTION] range.
Link copied to clipboard
public String getBonusName()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public String getDescription()
Link copied to clipboard
public static int getLevelForTier(int tier)
Gets the required level for a given unlock tier.
Link copied to clipboard
public int getProcCount(Player player)
Gets the proc count for a player.
Link copied to clipboard
public int getRequiredLevel()
Link copied to clipboard
protected double getScaledCooldown(int skillLevel)
Returns the configured cooldown at a specific skill level.
protected double getScaledCooldown(Player player)
Returns the configured cooldown at the player's current skill level.
Link copied to clipboard
protected double getScaledProcChance(Player player)
Returns the configured proc chance at the player's current skill level.
Link copied to clipboard
protected double getScaledValue(int skillLevel)
Returns the configured linear bonus at a specific skill level.
protected double getScaledValue(Player player)
Returns the configured linear bonus at the player's current level.
Link copied to clipboard
public String getSkillId()
Link copied to clipboard
Link copied to clipboard
Returns the test strategy for verifying this skill in automated testing.
Link copied to clipboard
public int getUnlockTier()
Link copied to clipboard
public void incrementProcCount(Player player)
Increments the proc count for a player.
Link copied to clipboard
public boolean isEnabled()
Link copied to clipboard
public boolean meetsLevelRequirement(int skillLevel)
Checks if a player meets the level requirement for this bonus.
Link copied to clipboard
public void resetAllProcCounts()
Resets all proc counts.
Link copied to clipboard
public void resetProcCount(Player player)
Resets the proc count for a player.
Link copied to clipboard
protected static double scaled(double base, double perLevel, int level)
The standard linear per-level scaling used by most skill payouts: base + level * perLevel.
protected static double scaled(double base, double perLevel, double cap, int level)
Capped variant of scaled: min(cap, base + level * perLevel).
Link copied to clipboard
public static void sendSkillActionBar(Player player, SkillBonus skill)
Sends a skill trigger action bar message to the player.
Link copied to clipboard
public static void sendStackingSkillActionBar(Player player, SkillBonus skill, int currentStacks, int maxStacks)
Sends a stacking skill action bar message showing current stack count.
Link copied to clipboard
public void setConfigFields(SkillBonusConfigFields configFields)
Sets the configuration fields for this skill.
Link copied to clipboard
public void setEnabled(boolean enabled)