RandomChance.withLooting constructor

RandomChance.withLooting(
  1. double chance,
  2. double? looting_multiplier
)

Implementation

RandomChance.withLooting(this.chance, this.looting_multiplier)
    : assert(
          chance >= 0 && chance <= 1, 'The chance must be between 0 and 1');