Class AWAKE_ANTIDOTE_LESSER
java.lang.Object
net.pottercraft.ollivanders2.effect.O2Effect
net.pottercraft.ollivanders2.effect.O2EffectAntidoteSuper
net.pottercraft.ollivanders2.effect.AWAKE_ANTIDOTE_LESSER
Partial antidote that weakly counteracts the AWAKE effect by reducing its duration.
AWAKE_ANTIDOTE_LESSER is a reduced-potency antidote to the AWAKE effect. As an antidote,
it partially removes the awake state by reducing the remaining duration of any active AWAKE effect
on the target player. With a strength of 0.25 (25%), this antidote is the weakest counter to the
AWAKE effect, removing only 25% of the remaining duration.
Antidote Mechanism (inherited from O2EffectAntidoteSuper):
- Targets O2EffectType.AWAKE specifically
- Strength value 0.25 acts as a multiplier on the target effect's remaining duration
- Duration reduced = AWAKE remaining duration × 0.25 (25% of remaining time removed)
- If no AWAKE effect exists on the target, the antidote has no effect
- Immediately removes the antidote effect itself after processing
- See Also:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.effect.O2Effect
affectedPlayerText, duration, effectType, informousText, kill, legilimensText, p, permanent, targetID -
Constructor Summary
ConstructorsConstructorDescriptionAWAKE_ANTIDOTE_LESSER(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for creating a weak AWAKE antidote effect. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoRemove()Perform cleanup when the antidote effect is removed.Methods inherited from class net.pottercraft.ollivanders2.effect.O2EffectAntidoteSuper
checkEffect, getStrength, setPermanentMethods inherited from class net.pottercraft.ollivanders2.effect.O2Effect
age, getAffectedPlayerText, getInformousText, getLegilimensText, getMaxDuration, getMinDuration, getRemainingDuration, getTargetID, isKilled, isPermanent, kill
-
Constructor Details
-
AWAKE_ANTIDOTE_LESSER
public AWAKE_ANTIDOTE_LESSER(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid) Constructor for creating a weak AWAKE antidote effect.Creates an antidote that targets the AWAKE effect with reduced potency (strength 0.25). The duration parameter is accepted for API consistency with other effects but is not used for antidote processing. The antidote immediately processes and removes itself after applying its effect to any active AWAKE effect on the target.
- Parameters:
plugin- a reference to the plugin for loggingduration- ignored - antidotes apply immediately and do not persistisPermanent- ignored - antidotes are immediately applied and resolvedpid- the unique ID of the target player
-
-
Method Details