Class RunePouchLoadoutItem

java.lang.Object
dev.twilite.game.loadout.LoadoutItem
dev.twilite.game.loadout.RunePouchLoadoutItem

public class RunePouchLoadoutItem extends LoadoutItem
Loadout entry for a rune pouch and its desired contents.

The item expands to a preparation loadout during withdrawal. That preparation loadout keeps the pouch itself and withdraws only the rune amounts missing from the configured pouch slots.

  • Method Details

    • regular

      public static RunePouchLoadoutItem regular()
      Creates a loadout entry satisfied by a regular or divine rune pouch.
    • divine

      public static RunePouchLoadoutItem divine()
      Creates a loadout entry satisfied only by a divine rune pouch.
    • type

      Returns the requested pouch type.
    • rune

      public RunePouchLoadoutItem rune(Rune rune, int amount)
      Requires a rune in any supported pouch slot.
    • rune

      public RunePouchLoadoutItem rune(RunePouch.Slot slot, Rune rune, int amount)
      Requires a rune in the supplied pouch slot.
    • rune

      public RunePouchLoadoutItem rune(RunePouch.Slot slot, Rune rune, int minimum, int amount)
      Requires a rune in the supplied pouch slot with separate minimum and withdrawal amounts.
    • entries

      Returns configured pouch entries by slot.
    • invalid

      public boolean invalid()
      Returns whether the carried pouch contains unexpected runes.
    • missing

      public List<RunePouchLoadoutItem.Entry> missing()
      Returns configured rune entries missing from the pouch.
    • fill

      public int fill()
      Progresses the pouch toward its configured contents.
    • fill

      public int fill(int maxActions)
      Progresses the pouch toward its configured contents using at most maxActions fill actions.
    • carriedPresent

      public boolean carriedPresent()
      Returns whether the pouch and its configured contents are present.
      Overrides:
      carriedPresent in class LoadoutItem
    • preparationLoadout

      public InventoryLoadout preparationLoadout()
      Returns a plain inventory loadout that prepares the pouch and missing runes.