Function haveEnoughFor

  • Determine if you have enough resources to make a particular item

    Parameters

    • item: Item

      The item in question

    • amount: number = 1

      The number of the item to make; defaults to one

    Returns boolean

    Whether we have enough resources available to make the amount of the item