Function consumeDurability

  • Consumes durability from the player's selected item.

    Parameters

    • player: Player

      The player whose item durability will be consumed.

    • Optional value: number

      The amount of durability to consume. Defaults to 1.

    • Optional slot: EquipmentSlot

      The slot to consume durability from. Defaults to the player's selected slot.

    Returns boolean

    True if the durability was successfully consumed, false otherwise.