Class UNLUCK_ANTIDOTE_LESSER
UNLUCK_ANTIDOTE_LESSER is a partial antidote that counteracts the UNLUCK potion effect with reduced potency. As an antidote with strength 0.25, it reduces the duration of any active UNLUCK effects on the player by 25%. This allows for incomplete recovery from unluck-based curses, leaving some residual bad fortune that requires additional healing or stronger antidotes to fully remove.
- See Also:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.effect.O2Effect
affectedPlayerText, duration, effectType, informousText, kill, legilimensText, p, permanent, targetID -
Constructor Summary
ConstructorsConstructorDescriptionUNLUCK_ANTIDOTE_LESSER(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for creating a reduced-potency unluck antidote. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoRemove()Perform cleanup when the antidote effect is removed.Methods inherited from class net.pottercraft.ollivanders2.effect.PotionEffectAntidoteSuper
checkEffect, getStrength, setPermanentMethods inherited from class net.pottercraft.ollivanders2.effect.O2Effect
age, getAffectedPlayerText, getInformousText, getLegilimensText, getMaxDuration, getMinDuration, getRemainingDuration, getTargetID, isKilled, isPermanent, kill
-
Constructor Details
-
UNLUCK_ANTIDOTE_LESSER
public UNLUCK_ANTIDOTE_LESSER(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid) Constructor for creating a reduced-potency unluck antidote.Creates an antidote effect that reduces the duration of active UNLUCK potion effects by 25% (strength 0.25). The duration parameter is accepted for API consistency with other effects but is not used by antidote effects.
- Parameters:
plugin- a reference to the plugin for loggingduration- ignored - antidotes apply immediately and are resolvedisPermanent- ignored - antidotes are immediately applied and resolvedpid- the unique ID of the player to treat with the antidote
-
-
Method Details
-
doRemove
public void doRemove()Perform cleanup when the antidote effect is removed.The default implementation does nothing, as antidote effects have no persistent state to clean up. When removed, the player's remaining UNLUCK effect duration remains at its reduced value.
-