Interface Potion

All Superinterfaces:
Scheduler, Skill

public interface Potion extends Skill, Scheduler
Skill that turns the pet into a field alchemist: the skilltree grants, per level, which splash potions the pet may throw (its arsenal), each with its own cooldown. The pet throws from real bottles in its Backpack, aiming each by the potion's effect category — harmful potions at the mob its Behavior has targeted, helpful ones at its owner. The materialize upgrade lets it conjure permitted potions without backpack stock.
See Also:
  • Method Details

    • addEntry

      void addEntry(Potion.Entry entry)
      Adds a permitted potion to the arsenal (called as the skilltree upgrades apply).
      Parameters:
      entry - the potion to add to the arsenal
    • removeEntry

      void removeEntry(Potion.Entry entry)
      Removes a permitted potion from the arsenal (upgrade inversion).
      Parameters:
      entry - the potion to remove from the arsenal
    • getArsenal

      List<Potion.Entry> getArsenal()
      The current arsenal — every potion the pet may throw, with its cooldown.
      Returns:
      every potion this pet may throw
    • getMaterialize

      UpgradeComputer<Boolean> getMaterialize()
      When granted, the pet conjures permitted potions with no backpack stock (the toolless analog).
      Returns:
      the upgrade computer backing this value