Class BARUFFIOS_BRAIN_ELIXIR

java.lang.Object
net.pottercraft.ollivanders2.potion.O2Potion
net.pottercraft.ollivanders2.potion.BARUFFIOS_BRAIN_ELIXIR

public final class BARUFFIOS_BRAIN_ELIXIR extends O2Potion
Baruffio's Brain Elixir - a potion that doubles the power of all spells cast.

When consumed, this potion applies the HIGHER_SKILL effect to the player, which doubles the modifier used when calculating spell power and success rates. This makes all spells cast during the effect duration significantly more effective and more likely to succeed.

  • Constructor Details

    • BARUFFIOS_BRAIN_ELIXIR

      public BARUFFIOS_BRAIN_ELIXIR(@NotNull @NotNull Ollivanders2 plugin)
      Constructor for Baruffio's Brain Elixir potion.

      Initializes the potion with its ingredients (Runespoor Egg, Ginger Root, and Standard Potion Ingredients), description text, flavor text, and potion color. Sets up the recipe and the HIGHER_SKILL effect that will be applied when the potion is consumed.

      Parameters:
      plugin - a callback to the plugin instance
  • Method Details

    • drink

      public void drink(@NotNull @NotNull org.bukkit.entity.Player player)
      Drink Baruffio's Brain Elixir and gain temporary spell power enhancement.

      Applies the HIGHER_SKILL effect to the player for the duration defined by the potion's duration field. The HIGHER_SKILL effect doubles the player's skill modifier, which increases the power of all spells cast and doubles their success rate during the effect's duration.

      Specified by:
      drink in class O2Potion
      Parameters:
      player - the player who drank the potion