Class HIGHER_SKILL

java.lang.Object
net.pottercraft.ollivanders2.effect.O2Effect
net.pottercraft.ollivanders2.effect.HIGHER_SKILL

public class HIGHER_SKILL extends O2Effect
Passive marker effect that boosts effective skill level for the affected player.

The HIGHER_SKILL effect is a temporary marker effect that increases the player's effective experience level in skills, making them appear more skilled than their actual training progress. This effect does not apply any active modifications itself; instead, the skill system checks for this effect's presence and applies an effective level boost when calculating skill-based actions or checks. The effect is passive and only needs to be tracked until expiration.

Mechanism:

  • Passive marker effect - no active behavior during each tick
  • Skill system applies effective level multiplier when this effect is present
  • Detectable by mind-reading spells (Legilimens)
  • Detection text: "feels more skillful than usual"
  • Effect expires naturally when duration reaches zero
See Also:
  • Constructor Details

    • HIGHER_SKILL

      public HIGHER_SKILL(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for creating a higher skill passive marker effect.

      Creates a temporary marker effect that boosts the player's effective skill level. This effect is passive and does not apply modifications directly; the skill system checks for its presence to apply an effective level boost. Sets the detection text for mind-reading spells to "feels more skillful than usual".

      Parameters:
      plugin - a callback to the MC plugin
      duration - the duration of the effect in game ticks
      isPermanent - true if this effect is permanent, false if it is not
      pid - the unique ID of the player to grant higher skill
  • Method Details

    • checkEffect

      public void checkEffect()
      Age the higher skill marker effect each game tick.

      Called each game tick. This effect is passive and only needs to track its remaining duration. The actual skill level boost is applied by the skill system when it detects this effect's presence on a player. When the duration reaches zero, the effect is automatically killed and removed from the player.

      Specified by:
      checkEffect in class O2Effect
    • doRemove

      public void doRemove()
      Perform cleanup when the higher skill effect is removed.

      The default implementation does nothing, as the higher skill effect is a passive marker with no state to clean up. When removed, the player's effective skill level returns to normal based on their actual experience.

      Specified by:
      doRemove in class O2Effect