Class HIGHER_SKILL
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:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.effect.O2Effect
affectedPlayerText, duration, effectType, informousText, kill, legilimensText, p, permanent, targetID -
Constructor Summary
ConstructorsConstructorDescriptionHIGHER_SKILL(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for creating a higher skill passive marker effect. -
Method Summary
Modifier and TypeMethodDescriptionvoidAge the higher skill marker effect each game tick.voiddoRemove()Perform cleanup when the higher skill effect is removed.Methods inherited from class net.pottercraft.ollivanders2.effect.O2Effect
age, getAffectedPlayerText, getInformousText, getLegilimensText, getMaxDuration, getMinDuration, getRemainingDuration, getTargetID, isKilled, isPermanent, kill, setPermanent
-
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 pluginduration- the duration of the effect in game ticksisPermanent- true if this effect is permanent, false if it is notpid- 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:
checkEffectin classO2Effect
-
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.
-