DeadZone Community Packages
    Preparing search index...

    Function calculateSkillingBreak

    • Calculate and trigger a skilling break

      We generate a number between 1 and maxRange. If the number is <= defaultChance, we trigger a skilling break.

      If the user has DZ API -> Custom Skilling Breaks, it will use that instead

      Parameters

      • defaultChance: number

        What should the plugin's chance be to trigger

      • maxRange: number

        The maximum value to generate

      Returns boolean

      true if a skilling break was triggered, false otherwise