Class MenuItem<T>

Type Parameters

  • T

Constructors

  • Construct a new menu item, possibly with extra properties. Items in MenuItem.defaultOptions have intelligent defaults.

    Type Parameters

    • T

    Parameters

    • item: Item

      Item to add to menu.

    • options: Partial<{
          additionalValue: number;
          data: T;
          effect: Effect;
          maximum: number | "auto";
          mayo: Item;
          organ: "food" | "booze" | "spleen item";
          priceOverride: number;
          size: number;
          useRetrievePrice: boolean;
      }> = {}

      Options for this menu item

    Returns MenuItem<T>

Properties

additionalValue?: number
data?: T
effect?: Effect
item: Item
maximum?: number
mayo?: Item
organ?: "food" | "booze" | "spleen item"
priceOverride?: number
size: number
defaultPriceFunction: ((item: Item) => number) = ...

Methods

  • Type Parameters

    • T

    Returns Map<Item, Partial<{
        additionalValue: number;
        data: T;
        effect: Effect;
        maximum: number | "auto";
        mayo: Item;
        organ: "food" | "booze" | "spleen item";
        priceOverride: number;
        size: number;
        useRetrievePrice: boolean;
    }>>