Interface Sniff

All Superinterfaces:
Scheduler, Skill, ToggleableSkill

public interface Sniff extends Skill, Scheduler, ToggleableSkill
Skill that lets the pet periodically "sniff out" a drop and leave it beside itself. The drops are configured per skilltree as a weighted pool (see Sniff.DropEntry); one entry is chosen at random by weight on each dig.
  • Method Details

    • getInterval

      UpgradeComputer<Integer> getInterval()
      Returns the upgrade computer controlling the seconds between drops (lower is better).
      Returns:
      the upgrade computer for the seconds between drops (lower is better)
    • addDrop

      void addDrop(Sniff.DropEntry entry)
      Adds a drop entry to this pet's pool (called per granted skilltree level).
      Parameters:
      entry - the drop to add to the pool
    • removeDrop

      void removeDrop(Sniff.DropEntry entry)
      Removes a previously-added drop entry (skilltree level-down / invert).
      Parameters:
      entry - the drop to remove from the pool
    • getDropPool

      List<Sniff.DropEntry> getDropPool()
      The live weighted drop pool for this pet.
      Returns:
      every drop this pet can sniff out