Function extractItems

  • Extracts a map of gained items from a string, for example from the result of a combat.

    NOTE: Make sure you trust the source of that text.

    Parameters

    • text: string

      The text to extract items from

    Returns Map<Item, number>

    A map of items and their quantities